Class XmlStreamWritingContext

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class XmlStreamWritingContext
    extends org.n52.iceland.util.XmlFactories
    implements java.lang.AutoCloseable
    TODO JavaDoc
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean declareNamespace​(java.lang.String prefix, java.lang.String namespace)  
      void dispatch​(javax.xml.stream.events.XMLEvent event)  
      void endDocument()  
      void flush()  
      <X,Y> java.util.function.Function<X,Y> identity​(java.util.function.Function<X,Y> t)  
      void startDocument()  
      void write​(java.io.Reader in)  
      void write​(javax.xml.stream.XMLEventReader reader)  
      <T> void write​(T object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class org.n52.iceland.util.XmlFactories

        createIndentingTransformer, documentEncoding, documentVersion, eof, eventFactory, inputFactory, outputFactory, transformerFactory, unexpectedTag
    • Constructor Detail

    • Method Detail

      • write

        public <T> void write​(T object)
                       throws javax.xml.stream.XMLStreamException,
                              org.n52.svalbard.encode.exception.EncodingException
        Throws:
        javax.xml.stream.XMLStreamException
        org.n52.svalbard.encode.exception.EncodingException
      • write

        public void write​(java.io.Reader in)
                   throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • write

        public void write​(javax.xml.stream.XMLEventReader reader)
                   throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • identity

        public <X,Y> java.util.function.Function<X,Y> identity​(java.util.function.Function<X,Y> t)
      • declareNamespace

        public boolean declareNamespace​(java.lang.String prefix,
                                        java.lang.String namespace)
                                 throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • startDocument

        public void startDocument()
                           throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • endDocument

        public void endDocument()
                         throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • dispatch

        public void dispatch​(javax.xml.stream.events.XMLEvent event)
                      throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • close

        public void close()
                   throws javax.xml.stream.XMLStreamException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        javax.xml.stream.XMLStreamException
      • flush

        public void flush()
                   throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException