org.jcon.persistance
Class TOFReader

java.lang.Object
  extended by org.jcon.persistance.TOFReader

public class TOFReader
extends java.lang.Object

A reader what reads TOF files. No relation to java.io.Reader.

Author:
Paul Reavis

Constructor Summary
TOFReader(java.io.Reader instream)
          Creates a TOFReader on the given input stream.
TOFReader(java.io.Reader instream, LookupDatabase lookup)
          Creates a TOFReader on the given input stream with the given lookup database.
TOFReader(java.io.Reader instream, LookupDatabase lookup, StructuredStore store, java.lang.String basePath)
          Creates a TOFReader on the given input stream with the given lookup database, import store, and base path.
TOFReader(java.io.Reader instream, TOFObjectFactory factory)
          Creates a TOFReader with the provided custom TOFObjectFactory.
 
Method Summary
 void close()
           
 java.lang.Object readObject()
          Reads a single object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TOFReader

public TOFReader(java.io.Reader instream)
Creates a TOFReader on the given input stream.

Buffering is included; no extra charge.


TOFReader

public TOFReader(java.io.Reader instream,
                 LookupDatabase lookup)
Creates a TOFReader on the given input stream with the given lookup database.

Buffering is included; no extra charge.


TOFReader

public TOFReader(java.io.Reader instream,
                 LookupDatabase lookup,
                 StructuredStore store,
                 java.lang.String basePath)
Creates a TOFReader on the given input stream with the given lookup database, import store, and base path.

Buffering is included; no extra charge.


TOFReader

public TOFReader(java.io.Reader instream,
                 TOFObjectFactory factory)
Creates a TOFReader with the provided custom TOFObjectFactory.

Method Detail

readObject

public java.lang.Object readObject()
                            throws java.io.EOFException,
                                   java.io.IOException
Reads a single object. Returns an EOFException if there are no more. Returns a IOException if a parse error or other nonsense occurs.

Throws:
java.io.EOFException
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException