Package org.n52.svalbard.write
Class WmlTVPEncoderv20XmlStreamWriter
- java.lang.Object
-
- org.n52.svalbard.write.XmlStreamWriter<OmObservation>
-
- org.n52.svalbard.write.AbstractOmV20XmlStreamWriter
-
- org.n52.svalbard.write.WmlTVPEncoderv20XmlStreamWriter
-
- All Implemented Interfaces:
WmlTmlHelper
- Direct Known Subclasses:
PointTimeSeriesObservationXmlStreamWriter
public class WmlTVPEncoderv20XmlStreamWriter extends AbstractOmV20XmlStreamWriter implements WmlTmlHelper
Implementation ofAbstractOmV20XmlStreamWriterto write WaterML 2.0 encodedOmObservations to stream- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class org.n52.svalbard.write.XmlStreamWriter
XML_FRAGMENT
-
-
Constructor Summary
Constructors Constructor Description WmlTVPEncoderv20XmlStreamWriter(EncodingContext context, OutputStream outputStream, OmObservation element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckAndWriteDescription()protected voidcheckAndWriteIdentifier()protected voidcheckAndWriteName()protected Optional<String>getDefaultFeatureEncodingNamespace()protected voidwriteAddtitionalNamespaces()protected voidwriteResult()write om:result to stream-
Methods inherited from class org.n52.svalbard.write.AbstractOmV20XmlStreamWriter
check, getDocumentAdditionalHelperValues, getDocumentName, getTimeString, write, writeDescription, writeFeatureOfIntererst, writeIdentifier, writeMetadata, writeMetaDataProperty, writeName, writeObservableProperty, writeObservation, writeObservationType, writeParameter, writePhenomenonTime, writeProcedure, writeResultTime, writeValidTime
-
Methods inherited from class org.n52.svalbard.write.XmlStreamWriter
addXlinkHrefAttr, addXlinkTitleAttr, attr, attr, attr, chars, chars, empty, end, end, endInline, finish, flush, getContext, getElement, getEncodeNamespace, getEncoder, getEncoder, getEncoder, getOutputStream, getReplacement, getXmlOptions, isAddSchemaLocation, namespace, rawText, schemaLocation, start, start, time, time, tryGetEncoder, writeXmlObject, writeXmlObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.svalbard.encode.WmlTmlHelper
checkFields, checkSweDataArray
-
-
-
-
Constructor Detail
-
WmlTVPEncoderv20XmlStreamWriter
public WmlTVPEncoderv20XmlStreamWriter(EncodingContext context, OutputStream outputStream, OmObservation element) throws XMLStreamException
- Throws:
XMLStreamException
-
-
Method Detail
-
writeResult
protected void writeResult() throws XMLStreamException, EncodingExceptionDescription copied from class:AbstractOmV20XmlStreamWriterwrite om:result to stream- Overrides:
writeResultin classAbstractOmV20XmlStreamWriter- Throws:
XMLStreamException- If an error occurs when writing to streamEncodingException- If an error occurs when creating elements to be written
-
writeAddtitionalNamespaces
protected void writeAddtitionalNamespaces() throws XMLStreamException- Specified by:
writeAddtitionalNamespacesin classAbstractOmV20XmlStreamWriter- Throws:
XMLStreamException
-
checkAndWriteIdentifier
protected void checkAndWriteIdentifier() throws EncodingException, XMLStreamException- Overrides:
checkAndWriteIdentifierin classAbstractOmV20XmlStreamWriter- Throws:
EncodingExceptionXMLStreamException
-
checkAndWriteName
protected void checkAndWriteName() throws EncodingException, XMLStreamException- Overrides:
checkAndWriteNamein classAbstractOmV20XmlStreamWriter- Throws:
EncodingExceptionXMLStreamException
-
checkAndWriteDescription
protected void checkAndWriteDescription() throws XMLStreamException- Overrides:
checkAndWriteDescriptionin classAbstractOmV20XmlStreamWriter- Throws:
XMLStreamException
-
getDefaultFeatureEncodingNamespace
protected Optional<String> getDefaultFeatureEncodingNamespace()
- Specified by:
getDefaultFeatureEncodingNamespacein classAbstractOmV20XmlStreamWriter
-
-