public class OutputStreamRecordWriter extends AbstractRecordWriter
Record to an output stream.
Users of this class are responsible for opening/closing the output stream, maybe using
a JobListener.| Constructor and Description |
|---|
OutputStreamRecordWriter(OutputStreamWriter outputStreamWriter)
Convenient processor to write the payload of a
Record to an output stream. |
OutputStreamRecordWriter(OutputStreamWriter outputStreamWriter,
String lineSeparator)
Convenient processor to write the payload of a
Record to an output stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
writePayload(Object payload) |
processRecordpublic OutputStreamRecordWriter(OutputStreamWriter outputStreamWriter)
Record to an output stream.
The user of this class is responsible for opening/closing the output stream, maybe using
a JobListener.outputStreamWriter - the output stream to write records to.public OutputStreamRecordWriter(OutputStreamWriter outputStreamWriter, String lineSeparator)
Record to an output stream.
The user of this class is responsible for opening/closing the output stream, maybe using
a JobListener.outputStreamWriter - the output stream to write records to.lineSeparator - the line separator.public void writePayload(Object payload) throws Exception
writePayload in class AbstractRecordWriterExceptionCopyright © 2015. All Rights Reserved.