Package org.vast.swe
Class SWEReader
java.lang.Object
org.vast.swe.SWEReader
- All Implemented Interfaces:
InputStreamProvider
- Direct Known Subclasses:
ObservationStreamReader
Abstract class for all CDM readers. This class provides methods to parse any XML document containing CDM data structure, encoding and stream sections. The class has getters to get this info after it has been parsed. Concrete derived classes are actually responsible for finding the XML content for each of these sections and using the corresponding parsers to parse it out. This class also has a helper method that constructs the DataParser suited for a given encoding.
- Since:
- Aug 16, 2005
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataComponent
protected DataEncoding
protected DataHandler
protected DataStreamParser
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataStreamParser
abstract InputStream
void
parse
(InputStream inputStream) abstract void
parse
(InputStream inputStream, DataHandler handler) void
setDataComponents
(DataComponent dataComponents) void
setDataEncoding
(DataEncoding dataEncoding)
-
Field Details
-
dataEncoding
-
dataComponents
-
dataParser
-
dataHandler
-
valuesUri
-
-
Constructor Details
-
SWEReader
public SWEReader()
-
-
Method Details
-
parse
- Throws:
IOException
-
getDataStream
- Specified by:
getDataStream
in interfaceInputStreamProvider
- Throws:
IOException
-
setDataComponents
-
setDataEncoding
-
parse
- Throws:
IOException
-
getDataComponents
-
getDataEncoding
-
getDataParser
-
createDataParser
- Throws:
IOException
-