Parsing Engine

danbikel.switchboard
Interface ObjectReader

All Known Implementing Classes:
SexpNumberedObjectReader, SexpObjectReader

public interface ObjectReader

Specifies methods for reading objects from an underlying Reader or InputStream object. This interface contains a strict subset of the methods specified in ObjectInput, making it easy to adapt classes that already implement ObjectInput to become implementors of this interface.

See Also:
ObjectReaderFactory

Method Summary
 void close()
          Closes the underlying stream or Reader of this ObjectReader object.
 Object readObject()
          Reads and returns the next object from the underlying Reader or stream.
 

Method Detail

readObject

Object readObject()
                  throws IOException
Reads and returns the next object from the underlying Reader or stream.

Returns:
the next object of the underlying Reader or stream, or null if the end of the file or stream has been reached
Throws:
IOException - if the underlying Reader or input stream throws an IOException

close

void close()
           throws IOException
Closes the underlying stream or Reader of this ObjectReader object.

Throws:
IOException

Parsing Engine

Author: Dan Bikel.