public class JSONDataParser extends AbstractDataParser
Reads SWE data streams in JSON format
DataTreeVisitor.Record
CHOICE_ERROR, dataTypeUtils, renewDataBlock, stopParsing, STREAM_ERROR
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler
Constructor and Description |
---|
JSONDataParser() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected boolean |
moreData() |
void |
parse(InputStream inputStream) |
protected void |
processAtom(ScalarComponent scalarInfo) |
protected boolean |
processBlock(DataComponent blockInfo)
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 scalarInfo) throws IOException
processAtom
in class DataTreeVisitor
IOException
protected boolean processBlock(DataComponent blockInfo) 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.