public class TypedBytesRecordInput extends Object implements RecordInput
构造器和说明 |
---|
TypedBytesRecordInput(DataInput in)
Creates a new instance of TypedBytesRecordInput.
|
TypedBytesRecordInput(TypedBytesInput in)
Creates a new instance of TypedBytesRecordInput.
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public Buffer readBuffer(String tag) throws IOException
RecordInput
readBuffer
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public byte readByte(String tag) throws IOException
RecordInput
readByte
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public double readDouble(String tag) throws IOException
RecordInput
readDouble
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public float readFloat(String tag) throws IOException
RecordInput
readFloat
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public int readInt(String tag) throws IOException
RecordInput
readInt
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public long readLong(String tag) throws IOException
RecordInput
readLong
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public String readString(String tag) throws IOException
RecordInput
readString
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void startRecord(String tag) throws IOException
RecordInput
startRecord
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public Index startVector(String tag) throws IOException
RecordInput
startVector
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public Index startMap(String tag) throws IOException
RecordInput
startMap
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void endRecord(String tag) throws IOException
RecordInput
endRecord
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void endVector(String tag) throws IOException
RecordInput
endVector
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
public void endMap(String tag) throws IOException
RecordInput
endMap
在接口中 RecordInput
tag
- Used by tagged serialization formats (such as XML)IOException
Copyright © 2009 The Apache Software Foundation