|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nih.nlm.nls.gspell.Cfg
Cfg is a class that reads in a properties file and retreives values for them
| Constructor Summary | |
Cfg()
This is a constructor for Options |
|
| Method Summary | |
(package private) java.lang.String |
_makeDir(java.lang.String pDirectory)
Method _makeDir This method creates a dictionaries/dictName dir |
java.lang.String |
get(java.lang.String pAttribute)
get retrieves values for an attribute asked for This method will return a null for attributes asked for which do not exist. |
(package private) java.lang.String |
getDictionaryPath()
Method getDictionaryPath |
(package private) java.lang.String |
getDictionaryPath(java.lang.String pDictionaryName)
Method getDictionaryPath |
(package private) void |
read(java.lang.String pDictionaryName)
Method read This method will take an absolute path to the directory where the dictionary resides, or it will look in the classpath for directories labeled dictionaries for the beginning paths to look for dictionary directory and a config file labeled "dictionary".cfg |
(package private) void |
read(java.lang.String pDictionaryDir,
java.lang.String pDictionaryName)
Method read This method will take an absolute path to the directory where the dictionary resides, or it will look in the classpath for directories labeled dictionaries for the beginning paths to look for dictionary directory and a config file labeled "dictionary".cfg |
(package private) void |
save(java.lang.String pDictionaryName)
Save. |
(package private) void |
set(java.lang.String pKey,
java.lang.String pValue)
Set. |
(package private) void |
setDictionaryPath(java.lang.String pDictionaryDir)
Method setDictionaryPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Cfg()
throws GSpellException
java.lang.Exception
GSpellException| Method Detail |
void read(java.lang.String pDictionaryName)
throws java.lang.Exception
pDictionaryName -
java.lang.Exception
void read(java.lang.String pDictionaryDir,
java.lang.String pDictionaryName)
throws java.lang.Exception
pDictionaryDir - pDictionaryName -
java.lang.Exceptionpublic java.lang.String get(java.lang.String pAttribute)
pAttribute -
void set(java.lang.String pKey,
java.lang.String pValue)
pKey - pValue -
void save(java.lang.String pDictionaryName)
throws java.lang.Exception
pDictionaryName -
java.lang.Exception
java.lang.String _makeDir(java.lang.String pDirectory)
throws java.lang.Exception
pDirectory -
java.lang.Exception
java.lang.String getDictionaryPath()
throws java.lang.Exception
java.lang.Exception
java.lang.String getDictionaryPath(java.lang.String pDictionaryName)
throws java.lang.Exception
pDictionaryName -
java.lang.Exceptionvoid setDictionaryPath(java.lang.String pDictionaryDir)
pDictionaryDir -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||