|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.SwordBookPath
public class SwordBookPath
This represents all of the Sword Books (aka modules).
for license details.
The copyright to this program is held by it's authors.
Nested Class Summary | |
---|---|
(package private) static class |
SwordBookPath.CustomFilenameFilter
Check that the directories in the version directory really represent versions. |
Field Summary | |
---|---|
private static String |
AUGMENT_PATH
Sword global config file's path to where mods can be found |
private static File[] |
augmentPath
The directory URL |
private static String |
DATA_PATH
Sword global config file's path to where mods can be found |
private static String |
DIR_SWORD_CONF
Users config directory for Sword in Unix |
private static String |
DIR_SWORD_CONF_ALT
Users config directory for Sword in Unix |
private static String |
DIR_SWORD_GLOBAL_CONF
Sword global config file locations |
private static String |
DIR_SWORD_LIBRARY
Library may be a sibling of DIR_WINDOWS_DEFAULT or SWORD_HOME or CWD |
private static String |
DIR_WINDOWS_DEFAULT
Default windows installation directory |
private static File |
downloadDir
The directory URL |
private static Logger |
log
The log stream |
private static String |
PREFIX_GLOBALS
File prefix for config file |
private static String |
PROPERTY_SWORD_HOME
System property for sword home directory |
private static String |
PROPERTY_USER_HOME
Java system property for users home directory |
private static String |
SWORD_GLOBAL_CONF
Sword global config file |
Constructor Summary | |
---|---|
private |
SwordBookPath()
Some basic name initialization |
Method Summary | |
---|---|
static File[] |
getAugmentPath()
Accessor for the Sword directory |
static String[] |
getBookList(File bookDir)
|
private static File |
getDefaultDownloadPath()
|
private static File[] |
getDefaultPaths()
Search all of the "standard" Sword locations for Books. |
static File |
getDownloadDir()
|
static File[] |
getSwordPath()
Obtain a prioritized path of Book locations. |
private static boolean |
migrate(File oldPath,
File newPath)
|
private static void |
migrateBookDir()
|
private static void |
migrateBookDir(File oldPath,
File newPath)
|
private static void |
readSwordConf(List bookDirs,
File swordConfDir)
|
private static void |
readSwordConf(List bookDirs,
String swordConfDir)
|
static void |
setAugmentPath(File[] theNewDirs)
Accessor for the Sword directory |
static void |
setDownloadDir(File dlDir)
|
private static void |
testDefaultPath(List bookDirs,
File path)
Check to see if the given directory is a Sword mods.d directory and then add it to the list if it is. |
private static void |
testDefaultPath(List bookDirs,
String path)
Check to see if the given directory is a Sword mods.d directory and then add it to the list if it is. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String DIR_WINDOWS_DEFAULT
private static final String DIR_SWORD_LIBRARY
private static final String DIR_SWORD_CONF
private static final String DIR_SWORD_CONF_ALT
private static final String SWORD_GLOBAL_CONF
private static final String DIR_SWORD_GLOBAL_CONF
private static final String DATA_PATH
private static final String AUGMENT_PATH
private static final String PROPERTY_SWORD_HOME
private static final String PROPERTY_USER_HOME
private static final String PREFIX_GLOBALS
private static File[] augmentPath
private static File downloadDir
private static final Logger log
Constructor Detail |
---|
private SwordBookPath()
Method Detail |
---|
public static void setAugmentPath(File[] theNewDirs) throws BookException
theNewDirs
- The new Sword directory
BookException
public static File[] getAugmentPath()
public static File[] getSwordPath()
public static String[] getBookList(File bookDir)
private static File[] getDefaultPaths()
private static void readSwordConf(List bookDirs, File swordConfDir)
private static void readSwordConf(List bookDirs, String swordConfDir)
private static void testDefaultPath(List bookDirs, File path)
private static void testDefaultPath(List bookDirs, String path)
readonly
- private static File getDefaultDownloadPath()
private static void migrateBookDir()
private static void migrateBookDir(File oldPath, File newPath)
private static boolean migrate(File oldPath, File newPath)
public static File getDownloadDir()
public static void setDownloadDir(File dlDir)
downloadDir
- The download directory to set.
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |