public class SWEUtils extends XMLBindingsUtils
Helper class providing a version agnostic access to SWE component structure and encoding readers and writers. This class delegates to version specific bindings.
Modifier and Type | Field and Description |
---|---|
static String |
SWE |
static String |
V2_0 |
encoding, staxBindings
addOnlyUsedNamespaceMappingsToDOM, readFromDom, readFromStream, setEncoding, writeToDom, writeToStream
public static final String SWE
public static final String V2_0
public SWEUtils(String version)
public DataComponent readComponent(DOMHelper dom, Element componentElt) throws XMLReaderException
XMLReaderException
public DataComponent readComponent(InputStream is) throws XMLReaderException
XMLReaderException
public DataStream readDataStream(DOMHelper dom, Element componentElt) throws XMLReaderException
XMLReaderException
public DataStream readDataStream(InputStream is) throws XMLReaderException
XMLReaderException
public DataEncoding readEncoding(DOMHelper dom, Element encodingElt) throws XMLReaderException
XMLReaderException
public DataEncoding readEncoding(InputStream is) throws XMLReaderException
XMLReaderException
public Element writeComponent(DOMHelper dom, DataComponent dataComponents, boolean writeInlineData) throws XMLWriterException
XMLWriterException
public void writeComponent(OutputStream os, DataComponent dataComponents, boolean writeInlineData, boolean indent) throws XMLWriterException, IOException
XMLWriterException
IOException
public Element writeDataStream(DOMHelper dom, DataStream dataStream) throws XMLWriterException
XMLWriterException
public void writeDataStream(OutputStream os, DataStream dataStream, boolean indent) throws XMLWriterException, IOException
XMLWriterException
IOException
public Element writeEncoding(DOMHelper dom, DataEncoding dataEncoding) throws XMLWriterException
XMLWriterException
public void writeEncoding(OutputStream os, DataEncoding dataEncoding, boolean indent) throws XMLWriterException, IOException
XMLWriterException
IOException
protected Object readFromXmlStream(XMLStreamReader reader, Enum<?> eltType) throws XMLStreamException
readFromXmlStream
in class XMLBindingsUtils
XMLStreamException
protected void writeToXmlStream(XMLStreamWriter writer, Object sweObj, Enum<?> eltType) throws XMLStreamException
writeToXmlStream
in class XMLBindingsUtils
XMLStreamException
Copyright © 2016 Sensia Software LLC. All rights reserved.