JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class TokenizeInput

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

public class TokenizeInput
extends java.lang.Object

used to read files created by TokenizeOutput. 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:
TokenizeOutput

Field Summary
protected  java.lang.String filename
           
protected  java.io.BufferedReader input
           
 
Constructor Summary
TokenizeInput(java.lang.String f)
           
 
Method Summary
 void close()
           
protected  void finalize()
          close the file if necessary
 boolean getBoolean()
           
 double getDouble()
           
 int getInteger()
           
protected  java.lang.String getLine()
           
 long getLong()
           
 java.lang.String getString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected java.io.BufferedReader input

filename

protected java.lang.String filename
Constructor Detail

TokenizeInput

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

getBoolean

public boolean getBoolean()

getInteger

public int getInteger()

getLong

public long getLong()

getDouble

public double getDouble()

getString

public java.lang.String getString()

close

public void close()

getLine

protected java.lang.String getLine()

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