public class TypedBytesRecordInput extends Object implements RecordInput
Constructor and Description |
---|
TypedBytesRecordInput(DataInput in)
Creates a new instance of TypedBytesRecordInput.
|
TypedBytesRecordInput(TypedBytesInput in)
Creates a new instance of TypedBytesRecordInput.
|
Modifier and Type | Method and Description |
---|---|
void |
endMap(String tag)
Check the mark for end of the serialized map.
|
void |
endRecord(String tag)
Check the mark for end of the serialized record.
|
void |
endVector(String tag)
Check the mark for end of the serialized vector.
|
static TypedBytesRecordInput |
get(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(String tag)
Read a boolean from serialized record.
|
Buffer |
readBuffer(String tag)
Read byte array from serialized record.
|
byte |
readByte(String tag)
Read a byte from serialized record.
|
double |
readDouble(String tag)
Read a double-precision number from serialized record.
|
float |
readFloat(String tag)
Read a single-precision float from serialized record.
|
int |
readInt(String tag)
Read an integer from serialized record.
|
long |
readLong(String tag)
Read a long integer from serialized record.
|
String |
readString(String tag)
Read a UTF-8 encoded string from serialized record.
|
Index |
startMap(String tag)
Check the mark for start of the serialized map.
|
void |
startRecord(String tag)
Check the mark for start of the serialized record.
|
Index |
startVector(String tag)
Check the mark for start of the serialized vector.
|
public TypedBytesRecordInput(TypedBytesInput in)
public TypedBytesRecordInput(DataInput in)
public static TypedBytesRecordInput get(TypedBytesInput in)
TypedBytesInput
.in
- typed bytes input objectTypedBytesInput
.public static TypedBytesRecordInput get(DataInput in)
DataInput
.in
- data input objectDataInput
.public boolean readBool(String tag) throws IOException
RecordInput
readBool
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public Buffer readBuffer(String tag) throws IOException
RecordInput
readBuffer
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public byte readByte(String tag) throws IOException
RecordInput
readByte
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public double readDouble(String tag) throws IOException
RecordInput
readDouble
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public float readFloat(String tag) throws IOException
RecordInput
readFloat
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public int readInt(String tag) throws IOException
RecordInput
readInt
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public long readLong(String tag) throws IOException
RecordInput
readLong
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public String readString(String tag) throws IOException
RecordInput
readString
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void startRecord(String tag) throws IOException
RecordInput
startRecord
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public Index startVector(String tag) throws IOException
RecordInput
startVector
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public Index startMap(String tag) throws IOException
RecordInput
startMap
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void endRecord(String tag) throws IOException
RecordInput
endRecord
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void endVector(String tag) throws IOException
RecordInput
endVector
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void endMap(String tag) throws IOException
RecordInput
endMap
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.