JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class TokenizeOutput

java.lang.Object
  extended bygov.nasa.javaGenes.core.TokenizeOutput

public class TokenizeOutput
extends java.lang.Object

used to write files that will be read by TokenizeInput. Format is ASCII with one token per line. A token is a number, a string, or a boolean. Used for checkpointing by JavaGenes.

See Also:
TokenizeInput

Field Summary
protected  java.io.PrintWriter file
           
protected  java.lang.String filename
           
 
Constructor Summary
TokenizeOutput(java.lang.String f)
           
 
Method Summary
 void close()
           
protected  void finalize()
          close the file if necessary
 void putBoolean(boolean b)
           
 void putDouble(double real)
           
 void putInteger(int integer)
           
 void putLong(long integer)
           
 void putString(java.lang.String string)
           
 
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

TokenizeOutput

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

putBoolean

public void putBoolean(boolean b)

putInteger

public void putInteger(int integer)

putLong

public void putLong(long integer)

putDouble

public void putDouble(double real)

putString

public void putString(java.lang.String string)

close

public void close()

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