RecordInputpublic class TypedBytesRecordInput extends java.lang.Object implements RecordInput
| Constructor | Description |
|---|---|
TypedBytesRecordInput(java.io.DataInput in) |
Creates a new instance of TypedBytesRecordInput.
|
TypedBytesRecordInput(TypedBytesInput in) |
Creates a new instance of TypedBytesRecordInput.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
endMap(java.lang.String tag) |
Check the mark for end of the serialized map.
|
void |
endRecord(java.lang.String tag) |
Check the mark for end of the serialized record.
|
void |
endVector(java.lang.String tag) |
Check the mark for end of the serialized vector.
|
static TypedBytesRecordInput |
get(java.io.DataInput in) |
Get a thread-local typed bytes record input for the supplied
DataInput. |
static TypedBytesRecordInput |
get(TypedBytesInput in) |
Get a thread-local typed bytes record input for the supplied
TypedBytesInput. |
boolean |
readBool(java.lang.String tag) |
Read a boolean from serialized record.
|
Buffer |
readBuffer(java.lang.String tag) |
Read byte array from serialized record.
|
byte |
readByte(java.lang.String tag) |
Read a byte from serialized record.
|
double |
readDouble(java.lang.String tag) |
Read a double-precision number from serialized record.
|
float |
readFloat(java.lang.String tag) |
Read a single-precision float from serialized record.
|
int |
readInt(java.lang.String tag) |
Read an integer from serialized record.
|
long |
readLong(java.lang.String tag) |
Read a long integer from serialized record.
|
java.lang.String |
readString(java.lang.String tag) |
Read a UTF-8 encoded string from serialized record.
|
Index |
startMap(java.lang.String tag) |
Check the mark for start of the serialized map.
|
void |
startRecord(java.lang.String tag) |
Check the mark for start of the serialized record.
|
Index |
startVector(java.lang.String tag) |
Check the mark for start of the serialized vector.
|
public TypedBytesRecordInput(TypedBytesInput in)
public TypedBytesRecordInput(java.io.DataInput in)
public static TypedBytesRecordInput get(TypedBytesInput in)
TypedBytesInput.in - typed bytes input objectTypedBytesInput.public static TypedBytesRecordInput get(java.io.DataInput in)
DataInput.in - data input objectDataInput.public boolean readBool(java.lang.String tag)
throws java.io.IOException
RecordInputreadBool in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic Buffer readBuffer(java.lang.String tag) throws java.io.IOException
RecordInputreadBuffer in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic byte readByte(java.lang.String tag)
throws java.io.IOException
RecordInputreadByte in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic double readDouble(java.lang.String tag)
throws java.io.IOException
RecordInputreadDouble in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic float readFloat(java.lang.String tag)
throws java.io.IOException
RecordInputreadFloat in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic int readInt(java.lang.String tag)
throws java.io.IOException
RecordInputreadInt in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic long readLong(java.lang.String tag)
throws java.io.IOException
RecordInputreadLong in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic java.lang.String readString(java.lang.String tag)
throws java.io.IOException
RecordInputreadString in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic void startRecord(java.lang.String tag)
throws java.io.IOException
RecordInputstartRecord in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic Index startVector(java.lang.String tag) throws java.io.IOException
RecordInputstartVector in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic Index startMap(java.lang.String tag) throws java.io.IOException
RecordInputstartMap in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic void endRecord(java.lang.String tag)
throws java.io.IOException
RecordInputendRecord in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic void endVector(java.lang.String tag)
throws java.io.IOException
RecordInputendVector in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionpublic void endMap(java.lang.String tag)
throws java.io.IOException
RecordInputendMap in interface RecordInputtag - Used by tagged serialization formats (such as XML)java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.