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 intmaxBufferstatic java.lang.StringUNREASONBLE_LENGTH
-
Constructor Summary
Constructors Constructor Description BinaryInputArchive(java.io.DataInput in)Creates a new instance of BinaryInputArchive
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendMap(java.lang.String tag)voidendRecord(java.lang.String tag)voidendVector(java.lang.String tag)static BinaryInputArchivegetArchive(java.io.InputStream strm)booleanreadBool(java.lang.String tag)byte[]readBuffer(java.lang.String tag)bytereadByte(java.lang.String tag)doublereadDouble(java.lang.String tag)floatreadFloat(java.lang.String tag)intreadInt(java.lang.String tag)longreadLong(java.lang.String tag)voidreadRecord(Record r, java.lang.String tag)java.lang.StringreadString(java.lang.String tag)IndexstartMap(java.lang.String tag)voidstartRecord(java.lang.String tag)IndexstartVector(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:
readBytein interfaceInputArchive- Throws:
java.io.IOException
-
readBool
public boolean readBool(java.lang.String tag) throws java.io.IOException- Specified by:
readBoolin interfaceInputArchive- Throws:
java.io.IOException
-
readInt
public int readInt(java.lang.String tag) throws java.io.IOException- Specified by:
readIntin interfaceInputArchive- Throws:
java.io.IOException
-
readLong
public long readLong(java.lang.String tag) throws java.io.IOException- Specified by:
readLongin interfaceInputArchive- Throws:
java.io.IOException
-
readFloat
public float readFloat(java.lang.String tag) throws java.io.IOException- Specified by:
readFloatin interfaceInputArchive- Throws:
java.io.IOException
-
readDouble
public double readDouble(java.lang.String tag) throws java.io.IOException- Specified by:
readDoublein interfaceInputArchive- Throws:
java.io.IOException
-
readString
public java.lang.String readString(java.lang.String tag) throws java.io.IOException- Specified by:
readStringin interfaceInputArchive- Throws:
java.io.IOException
-
readBuffer
public byte[] readBuffer(java.lang.String tag) throws java.io.IOException- Specified by:
readBufferin interfaceInputArchive- Throws:
java.io.IOException
-
readRecord
public void readRecord(Record r, java.lang.String tag) throws java.io.IOException
- Specified by:
readRecordin interfaceInputArchive- Throws:
java.io.IOException
-
startRecord
public void startRecord(java.lang.String tag) throws java.io.IOException- Specified by:
startRecordin interfaceInputArchive- Throws:
java.io.IOException
-
endRecord
public void endRecord(java.lang.String tag) throws java.io.IOException- Specified by:
endRecordin interfaceInputArchive- Throws:
java.io.IOException
-
startVector
public Index startVector(java.lang.String tag) throws java.io.IOException
- Specified by:
startVectorin interfaceInputArchive- Throws:
java.io.IOException
-
endVector
public void endVector(java.lang.String tag) throws java.io.IOException- Specified by:
endVectorin interfaceInputArchive- Throws:
java.io.IOException
-
startMap
public Index startMap(java.lang.String tag) throws java.io.IOException
- Specified by:
startMapin interfaceInputArchive- Throws:
java.io.IOException
-
endMap
public void endMap(java.lang.String tag) throws java.io.IOException- Specified by:
endMapin interfaceInputArchive- Throws:
java.io.IOException
-
-