|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
model.LogFile
public class LogFile
Class LogFile is used to store change events of the tournament (name changes, new entries etc.) in a simple text file.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
UID for serialization |
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
protected |
LogFile(java.lang.String pathname)
Creates a log file in the public data folder specified in Settings. |
| Method Summary | |
|---|---|
protected java.lang.String |
getLogData()
Returns the contents of the log file |
protected void |
writeMessage(java.lang.String message)
Method writes a new text row in the log 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 LogFile(java.lang.String pathname)
pathname - name of the log file| Method Detail |
|---|
protected void writeMessage(java.lang.String message)
message - the string to be written
protected java.lang.String getLogData()
throws GoException
GoException - thrown if the log file cannot be read
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||