public class JsonLinesWriter extends LinedTextWriter
DataEndpoint.State
currentRecord
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEY
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZE
id, 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, writeRecord
close, getFile, getWriter, isAppend, isAutoCloseWriter, isFieldNamesInFirstRow, isFlushOnWrite, write
open, writeImpl
available, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter
decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toString
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime
public JsonLinesWriter(File file)
public JsonLinesWriter(Writer writer)
public JsonLinesWriter setAutoCloseWriter(boolean autoCloseWriter)
TextWriter
setAutoCloseWriter
in class TextWriter
public JsonLinesWriter setFlushOnWrite(boolean flushOnWrite)
TextWriter
setFlushOnWrite
in class TextWriter
public JsonLinesWriter setFieldNamesInFirstRow(boolean fieldNamesInFirstRow)
setFieldNamesInFirstRow
in class AbstractWriter
public JsonLinesWriter setDescription(String description)
setDescription
in class Endpoint
protected void assembleLine(Record record, StringBuilder lineBuffer) throws Throwable
assembleLine
in class LinedTextWriter
Throwable
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.