public static class JsonSink.Options
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
encoding |
The charset encoding for content
|
private com.d3x.morpheus.util.text.Formats |
formats |
The formats to parse JSON values
|
private com.d3x.morpheus.util.Resource |
resource |
The resource to load the frame from
|
| Constructor | Description |
|---|---|
Options() |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
setFile(java.io.File file) |
Sets the resource file for these options
|
void |
setFile(java.lang.String path) |
Sets the resource file for these options
|
void |
setOutputStream(java.io.OutputStream os) |
Sets the resource output stream for these options
|
void |
withFormats(java.util.function.Consumer<com.d3x.morpheus.util.text.Formats> configure) |
Sets the formats to use for output to CSV
|
private com.d3x.morpheus.util.text.Formats formats
private com.d3x.morpheus.util.Resource resource
private java.lang.String encoding
public void setOutputStream(java.io.OutputStream os)
os - the output stream to write topublic void setFile(java.io.File file)
file - the output file to write topublic void setFile(java.lang.String path)
path - the output file path to write topublic void withFormats(java.util.function.Consumer<com.d3x.morpheus.util.text.Formats> configure)
configure - the formats to applyCopyright 2014-2018, D3X Systems