Interface XmlGeneratorWritable

All Known Subinterfaces:
PrologDirective
All Known Implementing Classes:
DTD, NamespaceBinding, PrologComment, PrologPI, RootAttribute, XmlDeclaration

public interface XmlGeneratorWritable
Common API for XML entities to write via ToXmlGenerator.
Since:
3.2
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(ToXmlGenerator xmlGen, org.codehaus.stax2.XMLStreamWriter2 sw)
    Method to call to actually write out the entity using given XMLStreamWriter2.
  • Method Details

    • write

      void write(ToXmlGenerator xmlGen, org.codehaus.stax2.XMLStreamWriter2 sw) throws XMLStreamException
      Method to call to actually write out the entity using given XMLStreamWriter2. ToXmlGenerator is only passed in case access to configuration was needed.
      Parameters:
      xmlGen - Generator that called this method: MUST NOT call its output methods, only to be used for configuration access
      sw - Writer to use for actual output of XML event
      Throws:
      XMLStreamException