|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
settings.ConfFile
public class ConfFile
ConfFile is used to read application settings from a file in the file system. At this point the only parameters are the administration password and the tournament ID counter. The counter is also incremented every time a new tournament ID is requested.
Field Summary | |
---|---|
private static long |
serialVersionUID
UID for serialization |
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
protected |
ConfFile()
Creates a new ConfFile instance that points to a file in folder Settings.getDataFolder with the filename Settings.CONF_FILE_NAME |
Method Summary | |
---|---|
private java.lang.String |
getConfParameter(java.lang.String param_name)
Returns a given parameter value as a string from the configuration file. |
protected ID |
getNextTournamentId()
Increments the tournament ID counter and returns an ID instance created with the old value. |
protected java.lang.String |
getPassword()
|
private void |
setConfParameter(java.lang.String param_name,
java.lang.String param_value)
Sets a given parameter value in the configuration file. |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
protected ConfFile()
Method Detail |
---|
protected java.lang.String getPassword() throws GoException
GoException
protected ID getNextTournamentId() throws GoException
GoException
private java.lang.String getConfParameter(java.lang.String param_name) throws GoException
GoException
private void setConfParameter(java.lang.String param_name, java.lang.String param_value) throws GoException
GoException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |