at.spardat.xma.serializer
Interface Serializer

All Superinterfaces:
XmaOutput
All Known Implementing Classes:
AsciiSerializer, BinarySerializer

public interface Serializer
extends XmaOutput

Used to map a sequence of primitive types to a byte array.


Method Summary
 void addHeader()
          Indicates that the result-ByteArray should include a header.
 ByteArray getResult()
          Returns the array of bytes that is the result of the serialization process.
 boolean isAtServer()
          Returns whether this is produced at the server or at the client.
 
Methods inherited from interface at.spardat.xma.serializer.XmaOutput
writeBoolean, writeByte, writeInt, writeLong, writeObject, writeSerializedBytes, writeShort, writeString, writeStringN
 

Method Detail

getResult

public ByteArray getResult()
Returns the array of bytes that is the result of the serialization process.

Returns:
object of type ByteArray holding the result

isAtServer

public boolean isAtServer()
Returns whether this is produced at the server or at the client.

Specified by:
isAtServer in interface XmaOutput

addHeader

public void addHeader()
Indicates that the result-ByteArray should include a header. Default is to not include a header. Must be called before any data is serialized in this.