Package org.vast.swe
Class DataTreeVisitor
java.lang.Object
org.vast.swe.DataTreeVisitor
- Direct Known Subclasses:
AbstractDataParser
,AbstractDataWriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stack<DataTreeVisitor.Record>
protected DataTreeVisitor.Record
protected DataComponent
protected DataEncoding
protected DataHandler
protected boolean
protected ErrorHandler
protected boolean
protected BlockComponent
protected int
protected boolean
protected RawDataHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
protected abstract void
processAtom
(ScalarComponent component) Processes a scalar componentprotected abstract boolean
processBlock
(DataComponent component) Processes an aggregate componentvoid
Process the next scalar element in the streamvoid
reset()
Reset the parser before parsing a new tuplevoid
setDataComponents
(DataComponent dataInfo) void
setDataEncoding
(DataEncoding dataEncoding) void
setDataHandler
(DataHandler handler) void
setErrorHandler
(ErrorHandler handler) void
setParentArray
(BlockComponent parentArray) void
setRawDataHandler
(RawDataHandler handler)
-
Field Details
-
dataHandler
-
rawHandler
-
errorHandler
-
parentArray
-
parentArrayIndex
protected int parentArrayIndex -
dataComponents
-
dataEncoding
-
componentStack
-
currentRecord
-
newBlock
protected boolean newBlock -
endOfArray
protected boolean endOfArray -
parsing
protected boolean parsing
-
-
Constructor Details
-
DataTreeVisitor
public DataTreeVisitor(boolean parsing)
-
-
Method Details
-
processAtom
Processes a scalar component- Parameters:
component
-- Throws:
CDMException
IOException
-
processBlock
Processes an aggregate component- Parameters:
component
-- Returns:
- true if children should be processed, false otherwise
- Throws:
CDMException
IOException
-
processNextElement
Process the next scalar element in the stream- Throws:
CDMException
IOException
-
endDataBlock
- Throws:
CDMException
IOException
-
isEndOfDataBlock
public boolean isEndOfDataBlock() -
reset
public void reset()Reset the parser before parsing a new tuple -
getDataHandler
-
getRawDataHandler
-
getErrorHandler
-
getDataComponents
-
getDataEncoding
-
setDataHandler
-
setRawDataHandler
-
setErrorHandler
-
setDataComponents
-
setDataEncoding
-
setParentArray
-