com.github.libxjava.io
Class BinarySerialiserStream
java.lang.Object
java.io.OutputStream
java.io.DataOutputStream
com.github.libxjava.io.BinarySerialiserStream
- All Implemented Interfaces:
- ISerialiser, DataOutput
public class BinarySerialiserStream
- extends DataOutputStream
- implements ISerialiser
- Version:
- libxjava-cldc - 0.3
- Author:
- Marcel Patzlaff
| Methods inherited from class java.io.DataOutputStream |
close, write, write, writeBoolean, writeByte, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from interface java.io.DataOutput |
write, write, write, writeBoolean, writeByte, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
referenceCounter
protected int referenceCounter
BinarySerialiserStream
public BinarySerialiserStream(OutputStream out)
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- Overrides:
flush in class DataOutputStream
- Throws:
IOException - thrown from OutputStream.flush()
writeObject
public final 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
getReferenceNumber
protected Byte getReferenceNumber(Object obj)
Copyright © 2011 Marcel Patzlaff. All Rights Reserved.