Package org.vast.swe
Class XmlDataParser
java.lang.Object
org.vast.swe.DataTreeVisitor
org.vast.swe.AbstractDataParser
org.vast.swe.XmlDataParser
- All Implemented Interfaces:
 DataStreamParser
Parser for data streams written using SWE Common XML encoding
- Since:
 - Feb, 28 2008
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.vast.swe.DataTreeVisitor
DataTreeVisitor.Record - 
Field Summary
Fields inherited from class org.vast.swe.AbstractDataParser
CHOICE_ERROR, dataTypeUtils, renewDataBlock, stopParsing, STREAM_ERRORFields 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 TypeMethodDescriptionvoidclose()protected booleanmoreData()voidparse(InputStream inputStream) protected voidprocessAtom(ScalarComponent component) Processes a scalar componentprotected booleanprocessBlock(DataComponent component) Processes an aggregate componentvoidsetInput(InputStream inputStream) Methods inherited from class org.vast.swe.AbstractDataParser
parse, parse, parseNextBlock, reset, setDataComponents, setRenewDataBlock, stopMethods inherited from class org.vast.swe.DataTreeVisitor
endDataBlock, getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, isEndOfDataBlock, 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
getDataComponents, getDataEncoding, getDataHandler, getErrorHandler, getRawDataHandler, setDataEncoding, setDataHandler, setErrorHandler, setParentArray, setRawDataHandler 
- 
Constructor Details
- 
XmlDataParser
public XmlDataParser() 
 - 
 - 
Method Details
- 
setInput
- Throws:
 IOException
 - 
parse
- Throws:
 IOException
 - 
processAtom
Description copied from class:DataTreeVisitorProcesses a scalar component- Specified by:
 processAtomin classDataTreeVisitor- Throws:
 IOException
 - 
processBlock
Description copied from class:DataTreeVisitorProcesses an aggregate component- Specified by:
 processBlockin classDataTreeVisitor- Returns:
 - true if children should be processed, false otherwise
 - Throws:
 IOException
 - 
moreData
- Specified by:
 moreDatain classAbstractDataParser- Throws:
 IOException
 - 
close
- Throws:
 IOException
 
 -