Parsing Engine

danbikel.switchboard
Interface ObjectWriter

All Known Implementing Classes:
EventCountsWriter, TextObjectWriter

public interface ObjectWriter

Specifies methods for writing objects to an unerlying Writer or OutputStream object. This interface contains a strict subset of the methods specified in ObjectOutput, making it easy to adapt classes that already implement ObjectOutput to become implementors of this interface.


Method Summary
 void close()
          Closes the underlying stream or Writer of this ObjectWriter object.
 void writeObject(Object obj)
          Writes the specified object to the underlying stream or Writer.
 

Method Detail

close

void close()
           throws IOException
Closes the underlying stream or Writer of this ObjectWriter object.

Throws:
IOException

writeObject

void writeObject(Object obj)
                 throws IOException
Writes the specified object to the underlying stream or Writer.

Throws:
IOException - if the underlying Writer or output stream throws an IOException

Parsing Engine

Author: Dan Bikel.