public class XmlRecordInput extends Object implements RecordInput
| 构造器和说明 |
|---|
XmlRecordInput(InputStream in)
Creates a new instance of XmlRecordInput
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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 XmlRecordInput(InputStream in)
public byte readByte(String tag) throws IOException
RecordInputreadByte 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic boolean readBool(String tag) throws IOException
RecordInputreadBool 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic int readInt(String tag) throws IOException
RecordInputreadInt 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic long readLong(String tag) throws IOException
RecordInputreadLong 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic float readFloat(String tag) throws IOException
RecordInputreadFloat 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic double readDouble(String tag) throws IOException
RecordInputreadDouble 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic String readString(String tag) throws IOException
RecordInputreadString 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic Buffer readBuffer(String tag) throws IOException
RecordInputreadBuffer 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic void startRecord(String tag) throws IOException
RecordInputstartRecord 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic void endRecord(String tag) throws IOException
RecordInputendRecord 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic Index startVector(String tag) throws IOException
RecordInputstartVector 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic void endVector(String tag) throws IOException
RecordInputendVector 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic Index startMap(String tag) throws IOException
RecordInputstartMap 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionpublic void endMap(String tag) throws IOException
RecordInputendMap 在接口中 RecordInputtag - Used by tagged serialization formats (such as XML)IOExceptionCopyright © 2009 The Apache Software Foundation