@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public class BinaryRecordOutput extends Object implements RecordOutput
| Constructor and Description | 
|---|
| BinaryRecordOutput(DataOutput out)Deprecated.  Creates a new instance of BinaryRecordOutput | 
| BinaryRecordOutput(OutputStream out)Deprecated.  Creates a new instance of BinaryRecordOutput | 
| Modifier and Type | Method and Description | 
|---|---|
| void | endMap(TreeMap v,
      String tag)Deprecated.  Mark the end of a serialized map. | 
| void | endRecord(Record r,
         String tag)Deprecated.  Mark the end of a serialized record. | 
| void | endVector(ArrayList v,
         String tag)Deprecated.  Mark the end of a serialized vector. | 
| static BinaryRecordOutput | get(DataOutput out)Deprecated.  Get a thread-local record output for the supplied DataOutput. | 
| void | startMap(TreeMap v,
        String tag)Deprecated.  Mark the start of a map to be serialized. | 
| void | startRecord(Record r,
           String tag)Deprecated.  Mark the start of a record to be serialized. | 
| void | startVector(ArrayList v,
           String tag)Deprecated.  Mark the start of a vector to be serialized. | 
| void | writeBool(boolean b,
         String tag)Deprecated.  Write a boolean to serialized record. | 
| void | writeBuffer(Buffer buf,
           String tag)Deprecated.  Write a buffer to serialized record. | 
| void | writeByte(byte b,
         String tag)Deprecated.  Write a byte to serialized record. | 
| void | writeDouble(double d,
           String tag)Deprecated.  Write a double precision floating point number to serialized record. | 
| void | writeFloat(float f,
          String tag)Deprecated.  Write a single-precision float to serialized record. | 
| void | writeInt(int i,
        String tag)Deprecated.  Write an integer to serialized record. | 
| void | writeLong(long l,
         String tag)Deprecated.  Write a long integer to serialized record. | 
| void | writeString(String s,
           String tag)Deprecated.  Write a unicode string to serialized record. | 
public BinaryRecordOutput(OutputStream out)
public BinaryRecordOutput(DataOutput out)
public static BinaryRecordOutput get(DataOutput out)
out - data output streampublic void writeByte(byte b,
                      String tag)
               throws IOException
RecordOutputwriteByte in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface RecordOutputv - Map to be serializedtag - Used by tagged serialization formats (such as XML)IOException - Indicates error in serializationCopyright © 2023 Apache Software Foundation. All rights reserved.