Package org.vast.swe
Class SWEUtils
java.lang.Object
org.vast.xml.XMLBindingsUtils
org.vast.swe.SWEUtils
Helper class providing a version agnostic access to SWE component structure and encoding readers and writers. This class delegates to version specific bindings.
- Since:
- Feb 2, 2007
-
Field Summary
FieldsFields inherited from class org.vast.xml.XMLBindingsUtils
encoding, staxBindings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadComponent
(DOMHelper dom, Element componentElt) readDataStream
(DOMHelper dom, Element componentElt) readEncoding
(DOMHelper dom, Element encodingElt) protected Object
readFromXmlStream
(XMLStreamReader reader, Enum<?> eltType) void
writeComponent
(OutputStream os, DataComponent dataComponents, boolean writeInlineData, boolean indent) writeComponent
(DOMHelper dom, DataComponent dataComponents, boolean writeInlineData) void
writeDataStream
(OutputStream os, DataStream dataStream, boolean indent) writeDataStream
(DOMHelper dom, DataStream dataStream) void
writeEncoding
(OutputStream os, DataEncoding dataEncoding, boolean indent) writeEncoding
(DOMHelper dom, DataEncoding dataEncoding) protected void
writeToXmlStream
(XMLStreamWriter writer, Object sweObj, Enum<?> eltType) Methods inherited from class org.vast.xml.XMLBindingsUtils
addOnlyUsedNamespaceMappingsToDOM, readFromDom, readFromStream, readFromStream, setEncoding, writeToDom, writeToStream
-
Field Details
-
SWE
- See Also:
-
V2_0
- See Also:
-
-
Constructor Details
-
SWEUtils
-
-
Method Details
-
readComponent
- Throws:
XMLReaderException
-
readComponent
- Throws:
XMLReaderException
-
readDataStream
- Throws:
XMLReaderException
-
readDataStream
- Throws:
XMLReaderException
-
readEncoding
- Throws:
XMLReaderException
-
readEncoding
- Throws:
XMLReaderException
-
writeComponent
public Element writeComponent(DOMHelper dom, DataComponent dataComponents, boolean writeInlineData) throws XMLWriterException - Throws:
XMLWriterException
-
writeComponent
public void writeComponent(OutputStream os, DataComponent dataComponents, boolean writeInlineData, boolean indent) throws XMLWriterException, IOException - Throws:
XMLWriterException
IOException
-
writeDataStream
- Throws:
XMLWriterException
-
writeDataStream
public void writeDataStream(OutputStream os, DataStream dataStream, boolean indent) throws XMLWriterException, IOException - Throws:
XMLWriterException
IOException
-
writeEncoding
- Throws:
XMLWriterException
-
writeEncoding
public void writeEncoding(OutputStream os, DataEncoding dataEncoding, boolean indent) throws XMLWriterException, IOException - Throws:
XMLWriterException
IOException
-
readFromXmlStream
protected Object readFromXmlStream(XMLStreamReader reader, Enum<?> eltType) throws XMLStreamException - Specified by:
readFromXmlStream
in classXMLBindingsUtils
- Throws:
XMLStreamException
-
writeToXmlStream
protected void writeToXmlStream(XMLStreamWriter writer, Object sweObj, Enum<?> eltType) throws XMLStreamException - Specified by:
writeToXmlStream
in classXMLBindingsUtils
- Throws:
XMLStreamException
-