com.github.libxjava.io
Interface ISerialiser

All Superinterfaces:
DataOutput
All Known Implementing Classes:
BinarySerialiserStream

public interface ISerialiser
extends DataOutput

This interface defines write methods for a primitive serialiser.

Version:
libxjava-cldc - 0.3
Author:
Marcel Patzlaff

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 interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Method Detail

flush

void flush()
           throws IOException
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.

Throws:
IOException - thrown from OutputStream.flush()

writeObject

void writeObject(Object o)
                 throws IOException
Writes the given Object into this serialiser. Consult BinarySerialiserConstants for further information!

Parameters:
o - the Object to write.
Throws:
IOException - if problems occur while writing data


Copyright © 2011 Marcel Patzlaff. All Rights Reserved.