at.spardat.xma.serializer
Interface XmaInput

All Known Subinterfaces:
Deserializer
All Known Implementing Classes:
AsciiDeserializer, BinaryDeserializer

public interface XmaInput

Provides for extracting primitive Java types from a destination media that has been written before using the XmaOutput interface.


Method Summary
 boolean readBoolean()
          Reads a boolean
 byte readByte()
          Reads a byte
 int readInt()
          Reads an int
 long readLong()
          Reads a long
 java.lang.Object readObject()
          Reads an object written with XmaOutput.writeObject
 byte[] readSerializedBytes()
          Reads a sequence of bytes that has been written with writeSerializedBytes.
 short readShort()
          Reads a short
 java.lang.String readString()
          Reads a String
 java.lang.String readStringN()
          Reads a String
 

Method Detail

readString

public java.lang.String readString()
                            throws java.io.IOException
Reads a String

Returns:
String never null
Throws:
java.io.IOException

readStringN

public java.lang.String readStringN()
                             throws java.io.IOException
Reads a String

Returns:
String that may be null
Throws:
java.io.IOException

readInt

public int readInt()
            throws java.io.IOException
Reads an int

Returns:
int read
Throws:
java.io.IOException

readLong

public long readLong()
              throws java.io.IOException
Reads a long

Returns:
the read long
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException
Reads a short

Returns:
short read
Throws:
java.io.IOException

readBoolean

public boolean readBoolean()
                    throws java.io.IOException
Reads a boolean

Returns:
the boolean read
Throws:
java.io.IOException

readByte

public byte readByte()
              throws java.io.IOException
Reads a byte

Returns:
the byte read
Throws:
java.io.IOException

readSerializedBytes

public byte[] readSerializedBytes()
                           throws java.io.IOException
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.

Throws:
java.io.IOException

readObject

public java.lang.Object readObject()
                            throws java.lang.ClassNotFoundException,
                                   java.io.IOException
Reads an object written with XmaOutput.writeObject

Returns:
non-null object
Throws:
java.lang.ClassNotFoundException
java.io.IOException