JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.alsUtility
Class EasyFile

java.lang.Object
  extended bygov.nasa.alsUtility.EasyFile

public class EasyFile
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
EasyFile(java.lang.String f)
           
 
Method Summary
 void close()
           
 boolean containsData()
           
protected  void finalize()
          close the file if necessary
 void flush()
           
 void print(java.lang.String s)
           
 void printComaSeparated(double d)
          print d with a comma between it and all other entries
 void printComaSeparatedXYLine(double x, double y)
          print a with the form x,y
 void println()
           
 void println(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

protected java.lang.String filename

file

protected java.io.PrintWriter file
Constructor Detail

EasyFile

public EasyFile(java.lang.String f)
Parameters:
f - the filename
Method Detail

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

JavaGenes, NASA Ames. Written largely by Al Globus