The Stream to String formatter reads streaming data from an input stream, and splits it into Java strings. Set values for this formatter in the adapter configuration file.
Parameter | Description |
---|---|
Delimiter |
Type: string (Required) Specify the symbol used to separate columns. The default value is "\n". |
IncludeDelimiter |
Type: boolean (Required) If set to true, the delimiter is part of current row. If set to false, the delimiter is not part of the current row. The default value is false. |
AppendString |
Type: string (Required if IncludeDelimiter is set to true) If set to true, specify the string to append to the end of each result row. No default value. |
AppendPosition |
Type: string (Required if IncludeDelimiter is set to true) Specify the position to which the AppendString parameter takes effect. There are two valid values: front and end. The default value is front. |
IgnoreSpace |
Type: boolean (Required) Specify whether to trim the space char. The default value is true. |
CharsetName |
Type: string (Advanced) Specify the name of a supported charset. The default value is US-ASCII. |