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 TypeMethodDescriptionvoid
close()
void
parse
(InputStream inputStream) void
void
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()
-
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)
-