public class SimpleXmlWriter 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 |
|---|
SimpleXmlWriter(File file) |
SimpleXmlWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates that this endpoint has finished reading or writing.
|
boolean |
isPretty()
Indicates if line breaks and indentations should be added to output (default false).
|
void |
open()
Makes this endpoint ready for reading or writing.
|
SimpleXmlWriter |
setPretty(boolean pretty)
Indicates if line breaks and indentations should be added to output (default false).
Example output (pretty = true):
<?xml version="1.0" ?>
<records>
<record>
<field name="country">Philippines</field>
</record>
</records>
Example output (pretty = false):
<?xml version="1.0" ?><records><record><field name="country">Philippines</field></record></records>
|
protected void |
writeRecord(Record record) |
addExceptionProperties, getFile, getWriter, isAppend, isAutoCloseWriter, isFieldNamesInFirstRow, isFlushOnWrite, setAutoCloseWriter, setFlushOnWrite, writesetFieldNamesInFirstRow, 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, setCaptureElapsedTime, setDescriptionpublic SimpleXmlWriter(File file)
public SimpleXmlWriter(Writer writer)
public boolean isPretty()
public SimpleXmlWriter setPretty(boolean pretty)
public 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.