Package org.vast.swe
Class AbstractDataParser
java.lang.Object
org.vast.swe.DataTreeVisitor
org.vast.swe.AbstractDataParser
- All Implemented Interfaces:
DataStreamParser
- Direct Known Subclasses:
AsciiDataParser,BinaryDataParser,XmlDataParser,XmlDataParserDOM
Abstract class for parsing a CDM data stream
- Since:
- Aug 16, 2005
-
Nested Class Summary
Nested classes/interfaces inherited from class org.vast.swe.DataTreeVisitor
DataTreeVisitor.Record -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected SWEDataTypeUtilsprotected booleanprotected booleanprotected static final StringFields inherited from class org.vast.swe.DataTreeVisitor
componentStack, currentRecord, dataComponents, dataEncoding, dataHandler, endOfArray, errorHandler, newBlock, parentArray, parentArrayIndex, parsing, rawHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanmoreData()voidDefault parse method from a URI stringvoidDefault parse method from a URI objectParse next atom from streamvoidreset()Reset the parser before parsing a new tuplevoidsetDataComponents(DataComponent dataInfo) voidsetRenewDataBlock(boolean renewDataBlock) voidstop()Stop the parsing from another threadMethods inherited from class org.vast.swe.DataTreeVisitor
endDataBlock, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, processAtom, processBlock, processNextElement, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vast.cdm.common.DataStreamParser
close, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, parse, setDataEncoding, setDataHandler, setErrorHandler, setInput, setParentArray, setRawDataHandler
-
Field Details
-
STREAM_ERROR
- See Also:
-
CHOICE_ERROR
- See Also:
-
dataTypeUtils
-
stopParsing
protected boolean stopParsing -
renewDataBlock
protected boolean renewDataBlock
-
-
Constructor Details
-
AbstractDataParser
public AbstractDataParser()
-
-
Method Details
-
moreData
- Throws:
IOException
-
stop
public void stop()Stop the parsing from another thread- Specified by:
stopin interfaceDataStreamParser
-
reset
public void reset()Description copied from class:DataTreeVisitorReset the parser before parsing a new tuple- Specified by:
resetin interfaceDataStreamParser- Overrides:
resetin classDataTreeVisitor
-
parse
Default parse method from a URI string- Specified by:
parsein interfaceDataStreamParser- Throws:
IOException
-
parse
Default parse method from a URI object- Specified by:
parsein interfaceDataStreamParser- Throws:
IOException
-
parseNextBlock
Parse next atom from stream- Specified by:
parseNextBlockin interfaceDataStreamParser- Throws:
IOException
-
setDataComponents
- Specified by:
setDataComponentsin interfaceDataStreamParser- Overrides:
setDataComponentsin classDataTreeVisitor
-
setRenewDataBlock
public void setRenewDataBlock(boolean renewDataBlock) - Specified by:
setRenewDataBlockin interfaceDataStreamParser
-