com.github.libxjava.io
Class BinarySerialiserStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.DataOutputStream
              extended by com.github.libxjava.io.BinarySerialiserStream
All Implemented Interfaces:
ISerialiser, Closeable, DataOutput, Flushable

public final class BinarySerialiserStream
extends DataOutputStream
implements ISerialiser

Version:
libxjava-jse5 - 0.2
Author:
Marcel Patzlaff

Field Summary
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
BinarySerialiserStream(OutputStream out)
           
 
Method Summary
 void flush()
          Clears the internal serialisation graphs and flushes also the underlying outputstream.
 void writeObject(Object o)
          Writes the given Object into this serialiser.
 
Methods inherited from class java.io.DataOutputStream
size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

BinarySerialiserStream

public BinarySerialiserStream(OutputStream out)
Method Detail

flush

public void flush()
           throws IOException
Description copied from interface: ISerialiser
Clears the internal serialisation graphs and flushes also the underlying outputstream. This method should be called to finish a serialisation process and to reuse this instance for further serialisations.

Specified by:
flush in interface ISerialiser
Specified by:
flush in interface Flushable
Overrides:
flush in class DataOutputStream
Throws:
IOException - thrown from OutputStream.flush()

writeObject

public void writeObject(Object o)
                 throws IOException
Description copied from interface: ISerialiser
Writes the given Object into this serialiser. Consult BinarySerialiserConstants for further information!

Specified by:
writeObject in interface ISerialiser
Parameters:
o - the Object to write.
Throws:
IOException - if problems occur while writing data


Copyright © 2010 Marcel Patzlaff. All Rights Reserved.