public abstract class AbstractDataParser extends DataTreeVisitor implements DataStreamParser
Abstract class for parsing a CDM data stream
DataTreeVisitor.Record
Modifier and Type | Field and Description |
---|---|
protected static String |
CHOICE_ERROR |
protected SWEDataTypeUtils |
dataTypeUtils |
protected boolean |
renewDataBlock |
protected boolean |
stopParsing |
protected static String |
STREAM_ERROR |
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler
Constructor and Description |
---|
AbstractDataParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
moreData() |
void |
parse(String uri)
Default parse method from a URI string
|
void |
parse(URI uri)
Default parse method from a URI object
|
DataBlock |
parseNextBlock()
Parse next atom from stream
|
void |
reset()
Reset the parser before parsing a new tuple
|
void |
setDataComponents(DataComponent dataInfo) |
void |
setRenewDataBlock(boolean renewDataBlock) |
void |
stop()
Stop the parsing from another thread
|
endDataBlock, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, processAtom, processBlock, processNextElement, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, parse, setDataEncoding, setDataHandler, setErrorHandler, setInput, setParentArray, setRawDataHandler
protected static final String STREAM_ERROR
protected static final String CHOICE_ERROR
protected SWEDataTypeUtils dataTypeUtils
protected boolean stopParsing
protected boolean renewDataBlock
protected abstract boolean moreData() throws IOException
IOException
public void stop()
stop
in interface DataStreamParser
public void reset()
DataTreeVisitor
reset
in interface DataStreamParser
reset
in class DataTreeVisitor
public void parse(String uri) throws IOException
parse
in interface DataStreamParser
IOException
public void parse(URI uri) throws IOException
parse
in interface DataStreamParser
IOException
public DataBlock parseNextBlock() throws IOException
parseNextBlock
in interface DataStreamParser
IOException
public void setDataComponents(DataComponent dataInfo)
setDataComponents
in interface DataStreamParser
setDataComponents
in class DataTreeVisitor
public void setRenewDataBlock(boolean renewDataBlock)
setRenewDataBlock
in interface DataStreamParser
Copyright © 2016 Sensia Software LLC. All rights reserved.