RecordOutputpublic class TypedBytesRecordOutput extends java.lang.Object implements RecordOutput
| Constructor | Description |
|---|---|
TypedBytesRecordOutput(java.io.DataOutput out) |
Creates a new instance of TypedBytesRecordOutput.
|
TypedBytesRecordOutput(TypedBytesOutput out) |
Creates a new instance of TypedBytesRecordOutput.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
endMap(java.util.TreeMap m,
java.lang.String tag) |
Mark the end of a serialized map.
|
void |
endRecord(Record r,
java.lang.String tag) |
Mark the end of a serialized record.
|
void |
endVector(java.util.ArrayList v,
java.lang.String tag) |
Mark the end of a serialized vector.
|
static TypedBytesRecordOutput |
get(java.io.DataOutput out) |
Get a thread-local typed bytes record output for the supplied
DataOutput. |
static TypedBytesRecordOutput |
get(TypedBytesOutput out) |
Get a thread-local typed bytes record input for the supplied
TypedBytesOutput. |
void |
startMap(java.util.TreeMap m,
java.lang.String tag) |
Mark the start of a map to be serialized.
|
void |
startRecord(Record r,
java.lang.String tag) |
Mark the start of a record to be serialized.
|
void |
startVector(java.util.ArrayList v,
java.lang.String tag) |
Mark the start of a vector to be serialized.
|
void |
writeBool(boolean b,
java.lang.String tag) |
Write a boolean to serialized record.
|
void |
writeBuffer(Buffer buf,
java.lang.String tag) |
Write a buffer to serialized record.
|
void |
writeByte(byte b,
java.lang.String tag) |
Write a byte to serialized record.
|
void |
writeDouble(double d,
java.lang.String tag) |
Write a double precision floating point number to serialized record.
|
void |
writeFloat(float f,
java.lang.String tag) |
Write a single-precision float to serialized record.
|
void |
writeInt(int i,
java.lang.String tag) |
Write an integer to serialized record.
|
void |
writeLong(long l,
java.lang.String tag) |
Write a long integer to serialized record.
|
void |
writeString(java.lang.String s,
java.lang.String tag) |
Write a unicode string to serialized record.
|
public TypedBytesRecordOutput(TypedBytesOutput out)
public TypedBytesRecordOutput(java.io.DataOutput out)
public static TypedBytesRecordOutput get(TypedBytesOutput out)
TypedBytesOutput.out - typed bytes output objectTypedBytesOutput.public static TypedBytesRecordOutput get(java.io.DataOutput out)
DataOutput.out - data output objectDataOutput.public void writeBool(boolean b,
java.lang.String tag)
throws java.io.IOException
RecordOutputwriteBool in interface RecordOutputb - Boolean to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void writeBuffer(Buffer buf, java.lang.String tag) throws java.io.IOException
RecordOutputwriteBuffer in interface RecordOutputbuf - Buffer to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void writeByte(byte b,
java.lang.String tag)
throws java.io.IOException
RecordOutputwriteByte in interface RecordOutputb - Byte to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void writeDouble(double d,
java.lang.String tag)
throws java.io.IOException
RecordOutputwriteDouble in interface RecordOutputd - Double to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void writeFloat(float f,
java.lang.String tag)
throws java.io.IOException
RecordOutputwriteFloat in interface RecordOutputf - Float to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void writeInt(int i,
java.lang.String tag)
throws java.io.IOException
RecordOutputwriteInt in interface RecordOutputi - Integer to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void writeLong(long l,
java.lang.String tag)
throws java.io.IOException
RecordOutputwriteLong in interface RecordOutputl - Long to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void writeString(java.lang.String s,
java.lang.String tag)
throws java.io.IOException
RecordOutputwriteString in interface RecordOutputs - String to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void startRecord(Record r, java.lang.String tag) throws java.io.IOException
RecordOutputstartRecord in interface RecordOutputr - Record to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void startVector(java.util.ArrayList v,
java.lang.String tag)
throws java.io.IOException
RecordOutputstartVector in interface RecordOutputv - Vector to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void startMap(java.util.TreeMap m,
java.lang.String tag)
throws java.io.IOException
RecordOutputstartMap in interface RecordOutputm - Map to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void endRecord(Record r, java.lang.String tag) throws java.io.IOException
RecordOutputendRecord in interface RecordOutputr - Record to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void endVector(java.util.ArrayList v,
java.lang.String tag)
throws java.io.IOException
RecordOutputendVector in interface RecordOutputv - Vector to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationpublic void endMap(java.util.TreeMap m,
java.lang.String tag)
throws java.io.IOException
RecordOutputendMap in interface RecordOutputm - Map to be serializedtag - Used by tagged serialization formats (such as XML)java.io.IOException - Indicates error in serializationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.