Package org.vast.swe
Class SWEWriter
java.lang.Object
org.vast.swe.SWEWriter
- All Implemented Interfaces:
OutputStreamProvider
Abstract class for all CDM writers. This class provides methods to write an XML document containing CDM data structure, encoding and stream sections. The class has setters allowing one to specify a data component structure and an encoding. Concrete derived classes are actually responsible for writing the XML content for each of these sections using the corresponding writers. This class also has a helper method that constructs the DataWriter suited for the given encoding.
- Since:
- Feb 10, 2006
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract OutputStream
void
setDataComponents
(DataComponent dataComponents) void
setDataEncoding
(DataEncoding dataEncoding) abstract void
write
(OutputStream inputStream)
-
Field Details
-
dataEncoding
-
dataComponents
-
-
Constructor Details
-
SWEWriter
public SWEWriter()
-
-
Method Details
-
write
- Throws:
IOException
-
getDataStream
- Specified by:
getDataStream
in interfaceOutputStreamProvider
- Throws:
IOException
-
getDataWriter
- Throws:
CDMException
-
getDataEncoding
-
getDataComponents
-
setDataComponents
-
setDataEncoding
-