public class JsonWriter extends TextWriter
DataEndpoint.StatecurrentRecordlastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, log, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
JsonWriter(JsonTemplate template,
File file) |
JsonWriter(JsonTemplate template,
Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates that this endpoint has finished reading or writing.
|
void |
open()
Makes this endpoint ready for reading or writing.
|
JsonWriter |
setAutoCloseWriter(boolean autoCloseWriter)
Indicates if the underlying java.io.BufferedWriter should be closed when this stream closes (defaults to true).
|
JsonWriter |
setDescription(String description) |
JsonWriter |
setFieldNamesInFirstRow(boolean fieldNamesInFirstRow) |
JsonWriter |
setFlushOnWrite(boolean flushOnWrite)
Indicates if the underlying java.io.BufferedWriter should be flushed after each record is written (defaults to false).
|
protected void |
writeRecord(Record record) |
addExceptionProperties, getFile, getWriter, isAppend, isAutoCloseWriter, isFieldNamesInFirstRow, isFlushOnWrite, writewriteImplavailable, 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 JsonWriter(JsonTemplate template, File file)
public JsonWriter(JsonTemplate template, Writer writer)
public JsonWriter setAutoCloseWriter(boolean autoCloseWriter)
TextWritersetAutoCloseWriter in class TextWriterpublic JsonWriter setFlushOnWrite(boolean flushOnWrite)
TextWritersetFlushOnWrite in class TextWriterpublic JsonWriter setFieldNamesInFirstRow(boolean fieldNamesInFirstRow)
setFieldNamesInFirstRow in class AbstractWriterpublic JsonWriter setDescription(String description)
setDescription in class Endpointpublic void open()
DataEndpointopen in class AbstractWriterpublic void close()
DataEndpointclose in class TextWriterprotected void writeRecord(Record record) throws Throwable
writeRecord in class AbstractWriterThrowableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.