public class XmlRecordOutput extends Object implements RecordOutput
| 构造器和说明 |
|---|
XmlRecordOutput(OutputStream out)
Creates a new instance of XmlRecordOutput
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
endMap(TreeMap v,
String tag)
Mark the end of a serialized map.
|
void |
endRecord(Record r,
String tag)
Mark the end of a serialized record.
|
void |
endVector(ArrayList v,
String tag)
Mark the end of a serialized vector.
|
void |
startMap(TreeMap v,
String tag)
Mark the start of a map to be serialized.
|
void |
startRecord(Record r,
String tag)
Mark the start of a record to be serialized.
|
void |
startVector(ArrayList v,
String tag)
Mark the start of a vector to be serialized.
|
void |
writeBool(boolean b,
String tag)
Write a boolean to serialized record.
|
void |
writeBuffer(Buffer buf,
String tag)
Write a buffer to serialized record.
|
void |
writeByte(byte b,
String tag)
Write a byte to serialized record.
|
void |
writeDouble(double d,
String tag)
Write a double precision floating point number to serialized record.
|
void |
writeFloat(float f,
String tag)
Write a single-precision float to serialized record.
|
void |
writeInt(int i,
String tag)
Write an integer to serialized record.
|
void |
writeLong(long l,
String tag)
Write a long integer to serialized record.
|
void |
writeString(String s,
String tag)
Write a unicode string to serialized record.
|
public XmlRecordOutput(OutputStream out)
public void writeByte(byte b,
String tag)
throws IOException
RecordOutputwriteByte 在接口中 RecordOutputb - Byte to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void writeBool(boolean b,
String tag)
throws IOException
RecordOutputwriteBool 在接口中 RecordOutputb - Boolean to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void writeInt(int i,
String tag)
throws IOException
RecordOutputwriteInt 在接口中 RecordOutputi - Integer to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void writeLong(long l,
String tag)
throws IOException
RecordOutputwriteLong 在接口中 RecordOutputl - Long to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void writeFloat(float f,
String tag)
throws IOException
RecordOutputwriteFloat 在接口中 RecordOutputf - Float to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void writeDouble(double d,
String tag)
throws IOException
RecordOutputwriteDouble 在接口中 RecordOutputd - Double to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void writeString(String s, String tag) throws IOException
RecordOutputwriteString 在接口中 RecordOutputs - String to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void writeBuffer(Buffer buf, String tag) throws IOException
RecordOutputwriteBuffer 在接口中 RecordOutputbuf - Buffer to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void startRecord(Record r, String tag) throws IOException
RecordOutputstartRecord 在接口中 RecordOutputr - Record to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void endRecord(Record r, String tag) throws IOException
RecordOutputendRecord 在接口中 RecordOutputr - Record to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void startVector(ArrayList v, String tag) throws IOException
RecordOutputstartVector 在接口中 RecordOutputv - Vector to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void endVector(ArrayList v, String tag) throws IOException
RecordOutputendVector 在接口中 RecordOutputv - Vector to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void startMap(TreeMap v, String tag) throws IOException
RecordOutputstartMap 在接口中 RecordOutputv - Map to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationpublic void endMap(TreeMap v, String tag) throws IOException
RecordOutputendMap 在接口中 RecordOutputv - Map to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationCopyright © 2009 The Apache Software Foundation