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