Package org.apache.jute
Class BinaryInputArchive
- java.lang.Object
-
- org.apache.jute.BinaryInputArchive
-
- All Implemented Interfaces:
InputArchive
public class BinaryInputArchive extends java.lang.Object implements InputArchive
-
-
Field Summary
Fields Modifier and Type Field Description static int
maxBuffer
static java.lang.String
UNREASONBLE_LENGTH
-
Constructor Summary
Constructors Constructor Description BinaryInputArchive(java.io.DataInput in)
Creates a new instance of BinaryInputArchive.BinaryInputArchive(java.io.DataInput in, int maxBufferSize, int extraMaxBufferSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endMap(java.lang.String tag)
void
endRecord(java.lang.String tag)
void
endVector(java.lang.String tag)
static BinaryInputArchive
getArchive(java.io.InputStream strm)
boolean
readBool(java.lang.String tag)
byte[]
readBuffer(java.lang.String tag)
byte
readByte(java.lang.String tag)
double
readDouble(java.lang.String tag)
float
readFloat(java.lang.String tag)
int
readInt(java.lang.String tag)
long
readLong(java.lang.String tag)
void
readRecord(Record r, java.lang.String tag)
java.lang.String
readString(java.lang.String tag)
Index
startMap(java.lang.String tag)
void
startRecord(java.lang.String tag)
Index
startVector(java.lang.String tag)
-
-
-
Field Detail
-
UNREASONBLE_LENGTH
public static final java.lang.String UNREASONBLE_LENGTH
- See Also:
- Constant Field Values
-
maxBuffer
public static final int maxBuffer
-
-
Method Detail
-
getArchive
public static BinaryInputArchive getArchive(java.io.InputStream strm)
-
readByte
public byte readByte(java.lang.String tag) throws java.io.IOException
- Specified by:
readByte
in interfaceInputArchive
- Throws:
java.io.IOException
-
readBool
public boolean readBool(java.lang.String tag) throws java.io.IOException
- Specified by:
readBool
in interfaceInputArchive
- Throws:
java.io.IOException
-
readInt
public int readInt(java.lang.String tag) throws java.io.IOException
- Specified by:
readInt
in interfaceInputArchive
- Throws:
java.io.IOException
-
readLong
public long readLong(java.lang.String tag) throws java.io.IOException
- Specified by:
readLong
in interfaceInputArchive
- Throws:
java.io.IOException
-
readFloat
public float readFloat(java.lang.String tag) throws java.io.IOException
- Specified by:
readFloat
in interfaceInputArchive
- Throws:
java.io.IOException
-
readDouble
public double readDouble(java.lang.String tag) throws java.io.IOException
- Specified by:
readDouble
in interfaceInputArchive
- Throws:
java.io.IOException
-
readString
public java.lang.String readString(java.lang.String tag) throws java.io.IOException
- Specified by:
readString
in interfaceInputArchive
- Throws:
java.io.IOException
-
readBuffer
public byte[] readBuffer(java.lang.String tag) throws java.io.IOException
- Specified by:
readBuffer
in interfaceInputArchive
- Throws:
java.io.IOException
-
readRecord
public void readRecord(Record r, java.lang.String tag) throws java.io.IOException
- Specified by:
readRecord
in interfaceInputArchive
- Throws:
java.io.IOException
-
startRecord
public void startRecord(java.lang.String tag) throws java.io.IOException
- Specified by:
startRecord
in interfaceInputArchive
- Throws:
java.io.IOException
-
endRecord
public void endRecord(java.lang.String tag) throws java.io.IOException
- Specified by:
endRecord
in interfaceInputArchive
- Throws:
java.io.IOException
-
startVector
public Index startVector(java.lang.String tag) throws java.io.IOException
- Specified by:
startVector
in interfaceInputArchive
- Throws:
java.io.IOException
-
endVector
public void endVector(java.lang.String tag) throws java.io.IOException
- Specified by:
endVector
in interfaceInputArchive
- Throws:
java.io.IOException
-
startMap
public Index startMap(java.lang.String tag) throws java.io.IOException
- Specified by:
startMap
in interfaceInputArchive
- Throws:
java.io.IOException
-
endMap
public void endMap(java.lang.String tag) throws java.io.IOException
- Specified by:
endMap
in interfaceInputArchive
- Throws:
java.io.IOException
-
-