Package org.vast.cdm.common
Interface DataStreamParser
- All Known Implementing Classes:
AbstractDataParser,AbstractDataParser,AsciiDataParser,BinaryDataParser,BinaryDataParser,JsonArrayDataParserGson,JsonDataParserGson,TextDataParser,XmlDataParser,XmlDataParserDOM
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
- Since:
- Aug 12, 2005
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidparse(InputStream inputStream) voidvoidvoidreset()voidsetDataComponents(DataComponent components) voidsetDataEncoding(DataEncoding encoding) voidsetDataHandler(DataHandler handler) voidsetErrorHandler(ErrorHandler handler) voidsetInput(InputStream inputStream) voidsetParentArray(BlockComponent parentArray) voidsetRawDataHandler(RawDataHandler handler) voidsetRenewDataBlock(boolean renewDataBlock) voidstop()
-
Method Details
-
getDataHandler
DataHandler getDataHandler() -
getRawDataHandler
RawDataHandler getRawDataHandler() -
getErrorHandler
ErrorHandler getErrorHandler() -
getDataComponents
DataComponent getDataComponents() -
getDataEncoding
DataEncoding getDataEncoding() -
setDataHandler
-
setRawDataHandler
-
setErrorHandler
-
setDataComponents
-
setDataEncoding
-
setParentArray
-
setInput
- Throws:
IOException
-
parse
- Throws:
IOException
-
parse
- Throws:
IOException
-
parse
- Throws:
IOException
-
parseNextBlock
- Throws:
IOException
-
close
- Throws:
IOException
-
reset
void reset() -
stop
void stop() -
setRenewDataBlock
void setRenewDataBlock(boolean renewDataBlock)
-