public class XmlDataParser extends AbstractDataParser
Parser for data streams written using SWE Common XML encoding
DataTreeVisitor.Record
CHOICE_ERROR, dataTypeUtils, renewDataBlock, stopParsing, STREAM_ERROR
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler
Constructor and Description |
---|
XmlDataParser() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected boolean |
moreData() |
void |
parse(InputStream inputStream) |
protected void |
processAtom(ScalarComponent component) |
protected boolean |
processBlock(DataComponent component)
Process an aggregate component
|
void |
setInput(InputStream inputStream) |
parse, parse, parseNextBlock, reset, setDataComponents, setRenewDataBlock, stop
endDataBlock, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, processNextElement, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler
public void setInput(InputStream inputStream) throws IOException
IOException
public void parse(InputStream inputStream) throws IOException
IOException
protected void processAtom(ScalarComponent component) throws IOException
processAtom
in class DataTreeVisitor
IOException
protected boolean processBlock(DataComponent component) throws IOException
DataTreeVisitor
processBlock
in class DataTreeVisitor
IOException
protected boolean moreData() throws IOException
moreData
in class AbstractDataParser
IOException
public void close() throws IOException
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.