Class XMLIndenterPE

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver

    public class XMLIndenterPE
    extends XMLIndenter
    XMLIndenter with extra functionality for Saxon-PE and Saxon-EE
    • Constructor Detail

      • XMLIndenterPE

        public XMLIndenterPE​(XMLEmitter next)
    • Method Detail

      • setOutputProperties

        public void setOutputProperties​(java.util.Properties props)
        Set the properties for this indenter
        Overrides:
        setOutputProperties in class XMLIndenter
        Parameters:
        props - the serialization properties
      • isDoubleSpaced

        protected boolean isDoubleSpaced​(NodeName name)
        Description copied from class: XMLIndenter
        Ask whether a particular element is to be double-spaced
        Overrides:
        isDoubleSpaced in class XMLIndenter
        Parameters:
        name - the element name
        Returns:
        true if double-spacing is in effect for this element
      • getIndentation

        protected int getIndentation()
        Description copied from class: XMLIndenter
        Get the number of spaces to be used for indentation
        Overrides:
        getIndentation in class XMLIndenter
        Returns:
        the number of spaces to be added to the indentation for each level
      • getLineLength

        protected int getLineLength()
        Description copied from class: XMLIndenter
        Get the suggested maximum length of a line
        Overrides:
        getLineLength in class XMLIndenter
        Returns:
        the suggested maximum line length (used for wrapping attributes)