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 String
protected SWEDataTypeUtils
protected boolean
protected boolean
protected static final String
Fields 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 boolean
moreData()
void
Default parse method from a URI stringvoid
Default parse method from a URI objectParse next atom from streamvoid
reset()
Reset the parser before parsing a new tuplevoid
setDataComponents
(DataComponent dataInfo) void
setRenewDataBlock
(boolean renewDataBlock) void
stop()
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, setRawDataHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
stop
in interfaceDataStreamParser
-
reset
public void reset()Description copied from class:DataTreeVisitor
Reset the parser before parsing a new tuple- Specified by:
reset
in interfaceDataStreamParser
- Overrides:
reset
in classDataTreeVisitor
-
parse
Default parse method from a URI string- Specified by:
parse
in interfaceDataStreamParser
- Throws:
IOException
-
parse
Default parse method from a URI object- Specified by:
parse
in interfaceDataStreamParser
- Throws:
IOException
-
parseNextBlock
Parse next atom from stream- Specified by:
parseNextBlock
in interfaceDataStreamParser
- Throws:
IOException
-
setDataComponents
- Specified by:
setDataComponents
in interfaceDataStreamParser
- Overrides:
setDataComponents
in classDataTreeVisitor
-
setRenewDataBlock
public void setRenewDataBlock(boolean renewDataBlock) - Specified by:
setRenewDataBlock
in interfaceDataStreamParser
-