com.github.libxjava.io
Interface IDeserialiser

All Superinterfaces:
DataInput
All Known Implementing Classes:
BinaryDeserialiserStream

public interface IDeserialiser
extends DataInput

This interface defines read methods for a primitive deserialiser.

Version:
libxjava-jse5 - 0.2
Author:
Marcel Patzlaff

Method Summary
 void flush()
          Clears the internal deserialisation graphs.
 Object readObject()
          Reads the next content of the underlying stream and interprets it as an Object.
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Method Detail

flush

void flush()
Clears the internal deserialisation graphs. This method should be called to process further content on the underlying stream which is not associated with the previously deserialised one. It has no effect on the underlying inputstream.


readObject

Object readObject()
                  throws ClassNotFoundException,
                         IOException
Reads the next content of the underlying stream and interprets it as an Object.

Returns:
the object created from the stream
Throws:
ClassNotFoundException - if a class could not be found, instantiated or accessed.
IOException - when problems occur while reading data


Copyright © 2010 Marcel Patzlaff. All Rights Reserved.