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