Class AbstractExtension

    • Constructor Detail

      • AbstractExtension

        public AbstractExtension()
    • Method Detail

      • writeTo

        public abstract void writeTo​(@NotNull
                                     @NotNull XMLStreamWriter writer)
                              throws 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:
        XMLStreamException