public class XmlDataWriter extends AbstractDataWriter
Writes CDM XML data stream using the given data components structure and encoding information.
DataTreeVisitor.Record
Modifier and Type | Field and Description |
---|---|
protected String |
namespace |
protected String |
prefix |
protected int |
prevStackSize |
protected XMLStreamWriter |
xmlWriter |
CHOICE_ERROR, dataTypeUtils, NO_HANDLER_ERROR, stopWriting, STREAM_ERROR
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler
Constructor and Description |
---|
XmlDataWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
closeElements() |
void |
flush() |
protected void |
processAtom(ScalarComponent component) |
protected boolean |
processBlock(DataComponent component)
Process an aggregate component
|
void |
setOutput(OutputStream outputStream) |
void |
write(OutputStream outputStream) |
setDataComponents, stop, write
endDataBlock, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, processNextElement, reset, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, reset, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler
protected XMLStreamWriter xmlWriter
protected String namespace
protected String prefix
protected int prevStackSize
public void setOutput(OutputStream outputStream) throws IOException
setOutput
in interface DataStreamWriter
setOutput
in class AbstractDataWriter
IOException
public void close() throws IOException
close
in interface DataStreamWriter
close
in class AbstractDataWriter
IOException
public void flush() throws IOException
flush
in interface DataStreamWriter
flush
in class AbstractDataWriter
IOException
public void write(OutputStream outputStream) throws IOException
write
in interface DataStreamWriter
write
in class AbstractDataWriter
IOException
protected void closeElements() throws XMLStreamException
XMLStreamException
protected boolean processBlock(DataComponent component) throws IOException
DataTreeVisitor
processBlock
in class AbstractDataWriter
IOException
protected void processAtom(ScalarComponent component) throws IOException
processAtom
in class AbstractDataWriter
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.