Package org.apache.jute
Class RecordWriter
- java.lang.Object
-
- org.apache.jute.RecordWriter
-
public class RecordWriter extends java.lang.ObjectFront-end for serializers. Also serves as a factory for serializers.
-
-
Constructor Summary
Constructors Constructor Description RecordWriter(java.io.OutputStream out, java.lang.String format)Creates a new instance of RecordWriter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(Record r)Serialize a record
-
-
-
Constructor Detail
-
RecordWriter
public RecordWriter(java.io.OutputStream out, java.lang.String format) throws java.io.IOExceptionCreates a new instance of RecordWriter- Parameters:
out- Output stream where the records will be serializedformat- Serialization format ("binary", "xml", or "csv")- Throws:
java.io.IOException
-
-
Method Detail
-
write
public void write(Record r) throws java.io.IOException
Serialize a record- Parameters:
r- record to be serialized- Throws:
java.io.IOException
-
-