at.spardat.xma.serializer
Class TaggedAsciiSerializer

java.lang.Object
  extended byat.spardat.xma.serializer.AsciiSerializer
      extended byat.spardat.xma.serializer.TaggedAsciiSerializer
All Implemented Interfaces:
Serializer, XmaOutput

public class TaggedAsciiSerializer
extends AsciiSerializer

Ascii Serializer where primitive values are written in format tag=value,


Constructor Summary
TaggedAsciiSerializer(boolean isAtServer, int bufferSize)
          Constructor
 
Method Summary
 void writeSerializedBytes(java.lang.String label, byte[] bytes)
          Write a sequence of bytes that is the output of the same kind of Serializer that is active now, i.e., providing this XmaOutput.
protected  void writeStringEscaped(java.lang.String label, java.lang.String s)
          Writes string by escaping all characters so that the resulting byte array contains only US-ASCII characters.
 
Methods inherited from class at.spardat.xma.serializer.AsciiSerializer
addHeader, getResult, isAtServer, writeBoolean, writeByte, writeInt, writeLong, writeObject, writeShort, writeString, writeStringN, writeStringNoEscape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggedAsciiSerializer

public TaggedAsciiSerializer(boolean isAtServer,
                             int bufferSize)
Constructor

Parameters:
isAtServer - is this serializer running at the server side?
bufferSize - initial buffer size
Method Detail

writeStringEscaped

protected void writeStringEscaped(java.lang.String label,
                                  java.lang.String s)
Description copied from class: AsciiSerializer
Writes string by escaping all characters so that the resulting byte array contains only US-ASCII characters. In this implementation, label is ignored.

Overrides:
writeStringEscaped in class AsciiSerializer
See Also:
AsciiSerializer.writeStringEscaped(java.lang.String, java.lang.String)

writeSerializedBytes

public void writeSerializedBytes(java.lang.String label,
                                 byte[] bytes)
                          throws java.io.IOException
Description copied from interface: XmaOutput
Write a sequence of bytes that is the output of the same kind of Serializer that is active now, i.e., providing this XmaOutput.

Specified by:
writeSerializedBytes in interface XmaOutput
Overrides:
writeSerializedBytes in class AsciiSerializer
Throws:
java.io.IOException
See Also:
XmaOutput.writeSerializedBytes(java.lang.String, byte[])