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 InputArchiveIOExceptionpublic boolean readBool(String tag) throws IOException
readBool in interface InputArchiveIOExceptionpublic int readInt(String tag) throws IOException
readInt in interface InputArchiveIOExceptionpublic long readLong(String tag) throws IOException
readLong in interface InputArchiveIOExceptionpublic float readFloat(String tag) throws IOException
readFloat in interface InputArchiveIOExceptionpublic double readDouble(String tag) throws IOException
readDouble in interface InputArchiveIOExceptionpublic String readString(String tag) throws IOException
readString in interface InputArchiveIOExceptionpublic byte[] readBuffer(String tag) throws IOException
readBuffer in interface InputArchiveIOExceptionpublic void readRecord(Record r, String tag) throws IOException
readRecord in interface InputArchiveIOExceptionpublic void startRecord(String tag) throws IOException
startRecord in interface InputArchiveIOExceptionpublic void endRecord(String tag) throws IOException
endRecord in interface InputArchiveIOExceptionpublic Index startVector(String tag) throws IOException
startVector in interface InputArchiveIOExceptionpublic void endVector(String tag) throws IOException
endVector in interface InputArchiveIOExceptionpublic Index startMap(String tag) throws IOException
startMap in interface InputArchiveIOExceptionpublic void endMap(String tag) throws IOException
endMap in interface InputArchiveIOExceptionCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.