|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.chaosserver.bilbo.textui.Main
This is the main class to enter the text UI version of the program.
Field Summary | |
protected static Settings |
settings
Holds a reference to the settings objects. |
Constructor Summary | |
Main()
|
Method Summary | |
protected static void |
generateMapping(File currentDirectory)
Generates the mapping file against the given directory. |
protected static void |
generateRecursiveMapping(File currentDirectory)
Generates the mapping file recursively against the given directory. |
protected static Settings |
getSettings()
Getter for Settings |
static void |
main(String[] args)
The main method that is executed when the class is called. |
protected static void |
rename(File currentDirectory,
String fromStyle,
String toStyle)
Renames files in given directory from one mapping style to another. |
protected static void |
renameRecursively(File currentDirectory,
String fromStyle,
String toStyle)
Recursively renames files in given directory from one mapping style to another. |
protected static void |
setSettings(Settings settings)
Setter for Settings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Settings settings
Constructor Detail |
public Main()
Method Detail |
protected static Settings getSettings()
protected static void setSettings(Settings settings)
settings
- the settings objectpublic static void main(String[] args) throws Exception
args
- The arguments.
Exception
- if something goes wrongprotected static void generateRecursiveMapping(File currentDirectory) throws ReaderWriterException, IOException, JolietException
currentDirectory
- the base directory to generate mapping files against.
ReaderWriterException
IOException
JolietException
protected static void generateMapping(File currentDirectory) throws ReaderWriterException, IOException, JolietException
currentDirectory
- the base directory to generate mapping files against.
ReaderWriterException
IOException
JolietException
protected static void renameRecursively(File currentDirectory, String fromStyle, String toStyle) throws ReaderWriterException, NameNotFoundException, FilenameMappingNotFoundException, IOException, FileNotFoundException
currentDirectory
- parent directory to start with.fromStyle
- the original styletoStyle
- the destination style
ReaderWriterException
NameNotFoundException
FilenameMappingNotFoundException
IOException
FileNotFoundException
protected static void rename(File currentDirectory, String fromStyle, String toStyle) throws ReaderWriterException, NameNotFoundException, FilenameMappingNotFoundException, IOException, FileNotFoundException
currentDirectory
- directory to renamefromStyle
- the original styletoStyle
- the destination style
ReaderWriterException
NameNotFoundException
FilenameMappingNotFoundException
IOException
FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |