|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.farafin.snEADy.inOut.C_LogFileWriter
public final class C_LogFileWriter
offers service to write logfiles with a buffer to be able to store local lines which can be stored later..
| Field Summary | |
|---|---|
private java.util.Vector |
lineList
Comment for lineList |
private java.io.File |
logFile
Comment for logFile |
private java.io.FileWriter |
writer
Comment for writer |
| Constructor Summary | |
|---|---|
C_LogFileWriter(java.lang.String fileName)
constructor |
|
C_LogFileWriter(java.lang.String root,
java.lang.String fileName)
|
|
| Method Summary | |
|---|---|
void |
addToLastLine(java.lang.String tail)
concats tail to the last string in the list. |
boolean |
safe()
writs the local list of lines to the file |
void |
safeAndCloseFile()
safes the stored lines to the file and closes it. |
void |
storeLine(java.lang.String line)
stors a line to a local list |
boolean |
writeLine(java.lang.String line)
an class to organize Log-File writings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.File logFile
logFile
private java.util.Vector lineList
lineList
private java.io.FileWriter writer
writer
| Constructor Detail |
|---|
public C_LogFileWriter(java.lang.String fileName)
fileName -
public C_LogFileWriter(java.lang.String root,
java.lang.String fileName)
root - fileName - | Method Detail |
|---|
public void storeLine(java.lang.String line)
line - public void addToLastLine(java.lang.String tail)
tail - public boolean writeLine(java.lang.String line)
line - writes a line at the end of the file
public boolean safe()
public void safeAndCloseFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||