gov.nasa.alsUtility
Class LogFile
java.lang.Object
gov.nasa.alsUtility.LogFile
- public class LogFile
- extends java.lang.Object
create a file and add text to it from time to time
Field Summary |
protected java.io.PrintWriter |
file
|
protected java.lang.String |
filename
|
Constructor Summary |
LogFile(java.lang.String filename)
|
LogFile(java.lang.String f,
boolean append)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
protected java.lang.String filename
file
protected java.io.PrintWriter file
LogFile
public LogFile(java.lang.String f,
boolean append)
- Parameters:
f
- the filenameappend
- if true, add to existing file. Otherwise create new file.
LogFile
public LogFile(java.lang.String filename)
containsData
public boolean containsData()
print
public void print(java.lang.String s)
println
public void println(java.lang.String s)
println
public void println()
close
public void close()
flush
public void flush()
printComaSeparated
public void printComaSeparated(double d)
- print d with a comma between it and all other entries
printComaSeparatedXYLine
public void printComaSeparatedXYLine(double x,
double y)
- print a with the form x,y
finalize
protected void finalize()
throws java.lang.Throwable
- close the file if necessary
- Throws:
java.lang.Throwable