public class DebugWriter extends ProxyWriter
DataEndpoint.StatelastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZElog, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
DebugWriter(DataWriter nestedDataWriter) |
DebugWriter(DataWriter nestedDataWriter,
String id) |
DebugWriter(DataWriter nestedDataWriter,
String id,
OutputStream outputStream) |
DebugWriter(DataWriter nestedDataWriter,
String id,
Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates that this endpoint has finished reading or writing.
|
boolean |
getCloseWriterOnClose() |
boolean |
getIncludeElapsedTime() |
protected Record |
interceptRecord(Record record)
Overridden by subclasses to transform, drop, or observe a record on its way through this proxy.
|
void |
setCloseWriterOnClose(boolean closeWriterOnClose) |
DebugWriter |
setIncludeElapsedTime(boolean includeElapsedTime) |
addExceptionProperties, available, getNestedWriter, map, map, open, setNestedDataWriter, setNestedDataWriter, writeImplgetNestedEndpoint, getRootEndpoint, getRootWriter, getWriter, writedecrementRecordCount, 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, setCaptureElapsedTime, setDescriptionpublic DebugWriter(DataWriter nestedDataWriter, String id, Writer writer)
public DebugWriter(DataWriter nestedDataWriter, String id, OutputStream outputStream)
public DebugWriter(DataWriter nestedDataWriter, String id)
public DebugWriter(DataWriter nestedDataWriter)
public void close()
throws DataException
DataEndpointclose in class ProxyWriterDataExceptionpublic boolean getCloseWriterOnClose()
public void setCloseWriterOnClose(boolean closeWriterOnClose)
public boolean getIncludeElapsedTime()
public DebugWriter setIncludeElapsedTime(boolean includeElapsedTime)
protected Record interceptRecord(Record record) throws Throwable
ProxyWriterContract for subclasses (see also docs/authoring/ProxyWriter.md):
DataWriter.null to drop the record; the framework will not write it downstream.DataException with .setRecord(record).DataWriter is opened and closed for you; do not write to it here.DataEndpoint.incrementRecordCount() here.interceptRecord in class ProxyWriterThrowableCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.