public class BinaryInputArchive extends java.lang.Object implements InputArchive
Modifier and Type | Field and Description |
---|---|
static int |
maxBuffer |
static java.lang.String |
UNREASONBLE_LENGTH |
Constructor and Description |
---|
BinaryInputArchive(java.io.DataInput in)
Creates a new instance of BinaryInputArchive
|
Modifier and Type | Method and 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) |
public static final java.lang.String UNREASONBLE_LENGTH
public static final int maxBuffer
public BinaryInputArchive(java.io.DataInput in)
public static BinaryInputArchive getArchive(java.io.InputStream strm)
public byte readByte(java.lang.String tag) throws java.io.IOException
readByte
in interface InputArchive
java.io.IOException
public boolean readBool(java.lang.String tag) throws java.io.IOException
readBool
in interface InputArchive
java.io.IOException
public int readInt(java.lang.String tag) throws java.io.IOException
readInt
in interface InputArchive
java.io.IOException
public long readLong(java.lang.String tag) throws java.io.IOException
readLong
in interface InputArchive
java.io.IOException
public float readFloat(java.lang.String tag) throws java.io.IOException
readFloat
in interface InputArchive
java.io.IOException
public double readDouble(java.lang.String tag) throws java.io.IOException
readDouble
in interface InputArchive
java.io.IOException
public java.lang.String readString(java.lang.String tag) throws java.io.IOException
readString
in interface InputArchive
java.io.IOException
public byte[] readBuffer(java.lang.String tag) throws java.io.IOException
readBuffer
in interface InputArchive
java.io.IOException
public void readRecord(Record r, java.lang.String tag) throws java.io.IOException
readRecord
in interface InputArchive
java.io.IOException
public void startRecord(java.lang.String tag) throws java.io.IOException
startRecord
in interface InputArchive
java.io.IOException
public void endRecord(java.lang.String tag) throws java.io.IOException
endRecord
in interface InputArchive
java.io.IOException
public Index startVector(java.lang.String tag) throws java.io.IOException
startVector
in interface InputArchive
java.io.IOException
public void endVector(java.lang.String tag) throws java.io.IOException
endVector
in interface InputArchive
java.io.IOException
public Index startMap(java.lang.String tag) throws java.io.IOException
startMap
in interface InputArchive
java.io.IOException
public void endMap(java.lang.String tag) throws java.io.IOException
endMap
in interface InputArchive
java.io.IOException
Copyright © 2019 The Apache Software Foundation