public class XmlRecordWriter extends TextStreamWriter
DataEndpoint.StatelastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, log, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
XmlRecordWriter(File file) |
XmlRecordWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this endpoint's current state to a
DataException. |
void |
close()
Indicates that this endpoint has finished reading or writing.
|
String |
getRecordTagName() |
String |
getRootTagName() |
boolean |
isPretty()
Indicates if line breaks and indentations should be added to output (default false).
|
boolean |
isWriteFieldsAsAttributes() |
boolean |
isWriteXmlDeclaration() |
void |
open()
Makes this endpoint ready for reading or writing.
|
XmlRecordWriter |
setPretty(boolean pretty)
Indicates if line breaks and indentations should be added to output (default false).
|
XmlRecordWriter |
setRecordTagName(String recordTagName) |
XmlRecordWriter |
setRootTagName(String rootTagName) |
XmlRecordWriter |
setWriteFieldsAsAttributes(boolean writeFieldsAsAttributes) |
XmlRecordWriter |
setWriteXmlDeclaration(boolean writeXmlDeclaration) |
protected void |
writeImpl(Record record)
Overridden by subclasses to write the specified record to this
DataWriter. |
getFile, getWriter, isAutoCloseWriter, isFlushOnWrite, setAutoCloseWriter, setFlushOnWrite, writeavailable, 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, setCaptureElapsedTime, setDescriptionpublic XmlRecordWriter(File file)
public XmlRecordWriter(Writer writer)
public boolean isPretty()
public XmlRecordWriter setPretty(boolean pretty)
public String getRootTagName()
public XmlRecordWriter setRootTagName(String rootTagName)
public String getRecordTagName()
public XmlRecordWriter setRecordTagName(String recordTagName)
public boolean isWriteXmlDeclaration()
public XmlRecordWriter setWriteXmlDeclaration(boolean writeXmlDeclaration)
public boolean isWriteFieldsAsAttributes()
public XmlRecordWriter setWriteFieldsAsAttributes(boolean writeFieldsAsAttributes)
public void open()
DataEndpointopen in class DataEndpointpublic void close()
DataEndpointclose in class TextStreamWriterprotected void writeImpl(Record record) throws Throwable
DataWriterDataWriter.writeImpl in class DataWriterThrowablepublic DataException addExceptionProperties(DataException exception)
EndpointDataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in class TextStreamWriterCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.