at.spardat.xma.serializer
Class TaggedAsciiDeserializer

java.lang.Object
  extended byat.spardat.xma.serializer.AsciiDeserializer
      extended byat.spardat.xma.serializer.TaggedAsciiDeserializer
All Implemented Interfaces:
Deserializer, XmaInput

public class TaggedAsciiDeserializer
extends AsciiDeserializer

Is able to read the byte stream written by TaggedAsciiSerializer.


Field Summary
 
Fields inherited from class at.spardat.xma.serializer.AsciiDeserializer
fArr
 
Constructor Summary
TaggedAsciiDeserializer(byte[] data)
          Constructor
TaggedAsciiDeserializer(byte[] data, int length)
          Constructor
TaggedAsciiDeserializer(byte[] data, int offset, int length)
           
 
Method Summary
 byte[] readSerializedBytes()
          Reads a sequence of bytes that has been written with writeSerializedBytes.
protected  java.lang.String readStringEscaped()
          There must be three components read: First, a label, followed by '=', then the value.
 
Methods inherited from class at.spardat.xma.serializer.AsciiDeserializer
readBoolean, readByte, readInt, readLong, readObject, readShort, readString, readStringN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggedAsciiDeserializer

public TaggedAsciiDeserializer(byte[] data,
                               int length)
Constructor

Parameters:
data - serialized array of data
length - first length bytes in data are used.

TaggedAsciiDeserializer

public TaggedAsciiDeserializer(byte[] data)
Constructor

Parameters:
data - serialized array of data

TaggedAsciiDeserializer

public TaggedAsciiDeserializer(byte[] data,
                               int offset,
                               int length)
Method Detail

readStringEscaped

protected java.lang.String readStringEscaped()
There must be three components read: First, a label, followed by '=', then the value.

Overrides:
readStringEscaped in class AsciiDeserializer
See Also:
AsciiDeserializer.readStringEscaped()

readSerializedBytes

public byte[] readSerializedBytes()
                           throws java.io.IOException
Description copied from interface: XmaInput
Reads a sequence of bytes that has been written with writeSerializedBytes. The result can be deserialized using the same kind of Deserializer as the one that provides this XmaInput.

Specified by:
readSerializedBytes in interface XmaInput
Overrides:
readSerializedBytes in class AsciiDeserializer
Throws:
java.io.IOException
See Also:
AsciiDeserializer.readSerializedBytes()