Class AbstractExtension

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void writeTo​(@NotNull javax.xml.stream.XMLStreamWriter writer)
      Implementations must write their content to the given XMLStreamWriter.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractExtension

        public AbstractExtension()
    • Method Detail

      • writeTo

        public abstract void writeTo​(@NotNull
                                     @NotNull javax.xml.stream.XMLStreamWriter writer)
                              throws javax.xml.stream.XMLStreamException
        Implementations must write their content to the given XMLStreamWriter.

        The extension must not open/close its own surrounding tag. This is done by the caller in order to guarantee proper isolation between the core implementation and the extensions. Furthermore, when an extension fails and throws an XMLStreamException the extensions output will be discarded but the sitemap generation will not fail.

        Parameters:
        writer -
        Throws:
        javax.xml.stream.XMLStreamException