|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmyShell.LogWriter
public class LogWriter
It is used to write a log file explaining the steps the program went through during its execution.
Field Summary | |
---|---|
(package private) java.lang.String |
logName
The name of the written file. |
Constructor Summary | |
---|---|
LogWriter()
Creates an instance of LogWriter and writes the current date in it. |
Method Summary | |
---|---|
void |
append(java.lang.String line)
Appends the String "line" at the end of the log file and prints it on the screen. |
void |
finish()
Writes the finishing time in the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String logName
Constructor Detail |
---|
public LogWriter()
Method Detail |
---|
public void append(java.lang.String line)
line
- The line to be appended in the file.public void finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |