T - object type@Description(value="Writes objects to stdout") @In(value=java.lang.Object.class) @FluxCommand(value="print") public final class ObjectStdoutWriter<T> extends AbstractObjectWriter<T>
DEFAULT_FOOTER, DEFAULT_HEADER, DEFAULT_SEPARATOR| Constructor and Description |
|---|
ObjectStdoutWriter()
Creates an instance of
ObjectStdoutWriter. |
| Modifier and Type | Method and Description |
|---|---|
void |
closeStream() |
FileCompression |
getCompression()
Returns the compression mode.
|
java.lang.String |
getEncoding()
Returns the encoding used by the underlying writer.
|
void |
process(T obj) |
void |
resetStream() |
void |
setCompression(FileCompression compression)
Sets the compression mode.
|
void |
setCompression(java.lang.String compression)
Sets the compression mode.
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding used by the underlying writer.
|
getFooter, getHeader, getSeparator, setFooter, setHeader, setSeparatorpublic ObjectStdoutWriter()
ObjectStdoutWriter.public java.lang.String getEncoding()
ConfigurableObjectWriterpublic void setEncoding(java.lang.String encoding)
ConfigurableObjectWriterencoding - name of the encodingpublic FileCompression getCompression()
ConfigurableObjectWriterpublic void setCompression(FileCompression compression)
ConfigurableObjectWritercompression - type of compressionpublic void setCompression(java.lang.String compression)
ConfigurableObjectWritercompression - type of compressionpublic void process(T obj)
public void resetStream()
public void closeStream()