public interface DataStreamParser
Concrete implementations of this interface are responsible for parsing data with the given encoding format, decoding this data into DataInfo and DecodedData objects if a DataHandler is registered and sending events to registered handlers. TODO add parseNextBlock() method taking DataBlock as argument so the same datablock can be efficiently reused + do impl
Modifier and Type | Method and Description |
---|---|
void |
close() |
DataComponent |
getDataComponents() |
DataEncoding |
getDataEncoding() |
DataHandler |
getDataHandler() |
ErrorHandler |
getErrorHandler() |
RawDataHandler |
getRawDataHandler() |
void |
parse(InputStream inputStream) |
void |
parse(String uri) |
void |
parse(URI uri) |
DataBlock |
parseNextBlock() |
void |
reset() |
void |
setDataComponents(DataComponent components) |
void |
setDataEncoding(DataEncoding encoding) |
void |
setDataHandler(DataHandler handler) |
void |
setErrorHandler(ErrorHandler handler) |
void |
setInput(InputStream inputStream) |
void |
setParentArray(BlockComponent parentArray) |
void |
setRawDataHandler(RawDataHandler handler) |
void |
setRenewDataBlock(boolean renewDataBlock) |
void |
stop() |
DataHandler getDataHandler()
RawDataHandler getRawDataHandler()
ErrorHandler getErrorHandler()
DataComponent getDataComponents()
DataEncoding getDataEncoding()
void setDataHandler(DataHandler handler)
void setRawDataHandler(RawDataHandler handler)
void setErrorHandler(ErrorHandler handler)
void setDataComponents(DataComponent components)
void setDataEncoding(DataEncoding encoding)
void setParentArray(BlockComponent parentArray)
void setInput(InputStream inputStream) throws IOException
IOException
void parse(String uri) throws IOException
IOException
void parse(URI uri) throws IOException
IOException
void parse(InputStream inputStream) throws IOException
IOException
DataBlock parseNextBlock() throws IOException
IOException
void close() throws IOException
IOException
void reset()
void stop()
void setRenewDataBlock(boolean renewDataBlock)
Copyright © 2016 Sensia Software LLC. All rights reserved.