Class XMLOutput<T extends XMLOutput<?>>

java.lang.Object
org.xmlobjects.util.xml.SAXFilter
org.xmlobjects.stream.XMLOutput<T>
All Implemented Interfaces:
AutoCloseable, ContentHandler
Direct Known Subclasses:
SAXOutputHandler, SAXWriter

public abstract class XMLOutput<T extends XMLOutput<?>> extends SAXFilter implements AutoCloseable
  • Field Details

    • prefixMapping

      protected final NamespaceSupport prefixMapping
    • schemaLocations

      protected final Map<String,String> schemaLocations
    • indent

      protected String indent
    • writeXMLDeclaration

      protected boolean writeXMLDeclaration
    • headerComment

      protected String[] headerComment
  • Constructor Details

    • XMLOutput

      public XMLOutput()
    • XMLOutput

      public XMLOutput(ContentHandler parent)
  • Method Details

    • self

      protected abstract T self()
    • flush

      public abstract void flush() throws Exception
      Throws:
      Exception
    • getPrefix

      public String getPrefix(String namespaceURI)
    • withPrefix

      public T withPrefix(String prefix, String namespaceURI)
    • getNamespaceURI

      public String getNamespaceURI(String prefix)
    • withDefaultNamespace

      public T withDefaultNamespace(String namespaceURI)
    • getSchemaLocation

      public String getSchemaLocation(String namespaceURI)
    • withSchemaLocation

      public T withSchemaLocation(String namespaceURI, String schemaLocation)
    • getIndent

      public String getIndent()
    • withIndent

      public T withIndent(String indent)
    • isWriteXMLDeclaration

      public boolean isWriteXMLDeclaration()
    • writeXMLDeclaration

      public T writeXMLDeclaration(boolean writeXMLDeclaration)
    • getHeaderComment

      public String[] getHeaderComment()
    • withHeaderComment

      public T withHeaderComment(String... headerMessage)