com.github.libxjava.io
Class BinaryDeserialiserStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by com.github.libxjava.io.BinaryDeserialiserStream
All Implemented Interfaces:
IDeserialiser, Closeable, DataInput

public final class BinaryDeserialiserStream
extends DataInputStream
implements IDeserialiser

Version:
libxjava-jse5 - 0.2
Author:
Marcel Patzlaff

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
BinaryDeserialiserStream(IClassLoader classLoader, InputStream in)
           
 
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 class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Constructor Detail

BinaryDeserialiserStream

public BinaryDeserialiserStream(IClassLoader classLoader,
                                InputStream in)
Method Detail

flush

public void flush()
Description copied from interface: IDeserialiser
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.

Specified by:
flush in interface IDeserialiser

readObject

public Object readObject()
                  throws ClassNotFoundException,
                         IOException
Description copied from interface: IDeserialiser
Reads the next content of the underlying stream and interprets it as an Object.

Specified by:
readObject in interface IDeserialiser
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.