Class XHTMLIndenter

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

    public class XHTMLIndenter
    extends HTMLIndenter
    XHTMLIndenter: This class indents XHTML elements, by adding whitespace character data where appropriate. This class differs from its superclass, HTMLIndenter, only in the way it classifies elements as being inline or formatted elements: unlike the HTML indenter, it requires the element names to be in lower case and to be in the XHTML namespace.
    Author:
    Michael Kay
    • Constructor Detail

      • XHTMLIndenter

        public XHTMLIndenter()
    • Method Detail

      • classifyTag

        protected int classifyTag​(int nameCode)
        Classify an element name as inline, formatted, or both or neither. This method is overridden in the XHTML indenter
        Overrides:
        classifyTag in class HTMLIndenter
        Parameters:
        nameCode - the element name
        Returns:
        a bit-significant integer containing flags IS_INLINE and/or IS_FORMATTED