public class JsonLinesWriter extends LinedTextWriter
DataEndpoint.StatecurrentRecordlastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, log, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
JsonLinesWriter(File file) |
JsonLinesWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assembleLine(Record record,
StringBuilder lineBuffer) |
JsonLinesWriter |
setAutoCloseWriter(boolean autoCloseWriter)
Indicates if the underlying java.io.BufferedWriter should be closed when this stream closes (defaults to true).
|
JsonLinesWriter |
setDescription(String description) |
JsonLinesWriter |
setFieldNamesInFirstRow(boolean fieldNamesInFirstRow) |
JsonLinesWriter |
setFlushOnWrite(boolean flushOnWrite)
Indicates if the underlying java.io.BufferedWriter should be flushed after each record is written (defaults to false).
|
addExceptionProperties, getNewLine, setNewLine, writeRecordclose, getFile, getWriter, isAppend, isAutoCloseWriter, isFieldNamesInFirstRow, isFlushOnWrite, writeopen, writeImplavailable, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter, getWriterdecrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringaddElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTimepublic JsonLinesWriter(File file)
public JsonLinesWriter(Writer writer)
public JsonLinesWriter setAutoCloseWriter(boolean autoCloseWriter)
TextWritersetAutoCloseWriter in class TextWriterpublic JsonLinesWriter setFlushOnWrite(boolean flushOnWrite)
TextWritersetFlushOnWrite in class TextWriterpublic JsonLinesWriter setFieldNamesInFirstRow(boolean fieldNamesInFirstRow)
setFieldNamesInFirstRow in class AbstractWriterpublic JsonLinesWriter setDescription(String description)
setDescription in class Endpointprotected void assembleLine(Record record, StringBuilder lineBuffer) throws Throwable
assembleLine in class LinedTextWriterThrowableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.