RecordWriter (Apache ZooKeeper - Jute 3.7.0 API)
Date: 2021-03-17

org.apache.jute

## Class RecordWriter

- java.lang.Object
- - org.apache.jute.RecordWriter

-     public class RecordWriter
      extends Object

  Front-end for serializers. Also serves as a factory for serializers.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RecordWriter(OutputStream out, String format)` Creates a new instance of RecordWriter.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `write(Record r)` Serialize a record.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RecordWriter

          public RecordWriter(OutputStream out,
                              String format)

      Creates a new instance of RecordWriter.
      Parameters:
        `out` - Output stream where the records will be serialized
        `format` - Serialization format ("binary", "xml", or "csv")

  - ### Method Detail

    - #### write

          public void write(Record r)
                     throws IOException

      Serialize a record.
      Parameters:
        `r` - record to be serialized
      Throws:
        `IOException`

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.