Package org.n52.svalbard.write
Class TsmlTVPEncoderv10XmlStreamWriter
java.lang.Object
org.n52.svalbard.write.XmlStreamWriter<OmObservation>
org.n52.svalbard.write.AbstractOmV20XmlStreamWriter
org.n52.svalbard.write.TsmlTVPEncoderv10XmlStreamWriter
- All Implemented Interfaces:
WmlTmlHelper
public class TsmlTVPEncoderv10XmlStreamWriter
extends AbstractOmV20XmlStreamWriter
implements WmlTmlHelper
TODO(specki): update javadoc Implementation of
AbstractOmV20XmlStreamWriter to write WaterML 2.0
encoded OmObservations to stream- Since:
- 1.0.0
-
Field Summary
Fields inherited from class org.n52.svalbard.write.XmlStreamWriter
XML_FRAGMENT -
Constructor Summary
ConstructorsConstructorDescriptionTsmlTVPEncoderv10XmlStreamWriter(EncodingContext context, OutputStream outputStream, OmObservation element) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected voidprotected voidwrite om:result to streamMethods 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, writeValidTimeMethods 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, writeXmlObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.svalbard.encode.WmlTmlHelper
checkFields, checkSweDataArray
-
Constructor Details
-
TsmlTVPEncoderv10XmlStreamWriter
public TsmlTVPEncoderv10XmlStreamWriter(EncodingContext context, OutputStream outputStream, OmObservation element) throws XMLStreamException - Throws:
XMLStreamException
-
-
Method Details
-
writeResult
Description 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
- Specified by:
writeAddtitionalNamespacesin classAbstractOmV20XmlStreamWriter- Throws:
XMLStreamException
-
checkAndWriteIdentifier
- Overrides:
checkAndWriteIdentifierin classAbstractOmV20XmlStreamWriter- Throws:
EncodingExceptionXMLStreamException
-
checkAndWriteName
- Overrides:
checkAndWriteNamein classAbstractOmV20XmlStreamWriter- Throws:
EncodingExceptionXMLStreamException
-
checkAndWriteDescription
- Overrides:
checkAndWriteDescriptionin classAbstractOmV20XmlStreamWriter- Throws:
XMLStreamException
-
getDefaultFeatureEncodingNamespace
- Specified by:
getDefaultFeatureEncodingNamespacein classAbstractOmV20XmlStreamWriter
-