Package org.apache.jute
Class BinaryInputArchive
- java.lang.Object
-
- org.apache.jute.BinaryInputArchive
-
- All Implemented Interfaces:
InputArchive
public class BinaryInputArchive extends Object implements InputArchive
-
-
Field Summary
Fields Modifier and Type Field Description static intmaxBufferstatic StringUNREASONBLE_LENGTH
-
Constructor Summary
Constructors Constructor Description BinaryInputArchive(DataInput in)Creates a new instance of BinaryInputArchive.BinaryInputArchive(DataInput in, int maxBufferSize, int extraMaxBufferSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendMap(String tag)voidendRecord(String tag)voidendVector(String tag)static BinaryInputArchivegetArchive(InputStream stream)booleanreadBool(String tag)byte[]readBuffer(String tag)bytereadByte(String tag)doublereadDouble(String tag)floatreadFloat(String tag)intreadInt(String tag)longreadLong(String tag)voidreadRecord(Record r, String tag)StringreadString(String tag)IndexstartMap(String tag)voidstartRecord(String tag)IndexstartVector(String tag)
-
-
-
Field Detail
-
UNREASONBLE_LENGTH
public static final String UNREASONBLE_LENGTH
- See Also:
- Constant Field Values
-
maxBuffer
public static final int maxBuffer
-
-
Method Detail
-
getArchive
public static BinaryInputArchive getArchive(InputStream stream)
-
readByte
public byte readByte(String tag) throws IOException
- Specified by:
readBytein interfaceInputArchive- Throws:
IOException
-
readBool
public boolean readBool(String tag) throws IOException
- Specified by:
readBoolin interfaceInputArchive- Throws:
IOException
-
readInt
public int readInt(String tag) throws IOException
- Specified by:
readIntin interfaceInputArchive- Throws:
IOException
-
readLong
public long readLong(String tag) throws IOException
- Specified by:
readLongin interfaceInputArchive- Throws:
IOException
-
readFloat
public float readFloat(String tag) throws IOException
- Specified by:
readFloatin interfaceInputArchive- Throws:
IOException
-
readDouble
public double readDouble(String tag) throws IOException
- Specified by:
readDoublein interfaceInputArchive- Throws:
IOException
-
readString
public String readString(String tag) throws IOException
- Specified by:
readStringin interfaceInputArchive- Throws:
IOException
-
readBuffer
public byte[] readBuffer(String tag) throws IOException
- Specified by:
readBufferin interfaceInputArchive- Throws:
IOException
-
readRecord
public void readRecord(Record r, String tag) throws IOException
- Specified by:
readRecordin interfaceInputArchive- Throws:
IOException
-
startRecord
public void startRecord(String tag) throws IOException
- Specified by:
startRecordin interfaceInputArchive- Throws:
IOException
-
endRecord
public void endRecord(String tag) throws IOException
- Specified by:
endRecordin interfaceInputArchive- Throws:
IOException
-
startVector
public Index startVector(String tag) throws IOException
- Specified by:
startVectorin interfaceInputArchive- Throws:
IOException
-
endVector
public void endVector(String tag) throws IOException
- Specified by:
endVectorin interfaceInputArchive- Throws:
IOException
-
startMap
public Index startMap(String tag) throws IOException
- Specified by:
startMapin interfaceInputArchive- Throws:
IOException
-
endMap
public void endMap(String tag) throws IOException
- Specified by:
endMapin interfaceInputArchive- Throws:
IOException
-
-