public class FixedLengthWriter extends Object implements RecordWriter
String class.| Constructor and Description |
|---|
FixedLengthWriter(Writer out)
Constructs a new FixedLegthWriter.
|
FixedLengthWriter(Writer out,
String recordTerminator)
Constructs a new FixedLegthWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the output stream.
|
void |
flush()
Flushes the output stream.
|
void |
write(Object value)
Writes a record object to this output stream.
|
public FixedLengthWriter(Writer out)
out - the output stream to write topublic void write(Object value) throws IOException, RecordIOException
RecordWriterwrite in interface RecordWritervalue - the record object to writeIOException - if an I/O error occurs writing the record to the streamRecordIOExceptionpublic void flush()
throws IOException
RecordWriterflush in interface RecordWriterIOException - if an I/O error occurs flushing the streampublic void close()
throws IOException
RecordWriterclose in interface RecordWriterIOException - if an I/O error occurs closing the stream