com.icl.saxon.output
Class HTMLIndenter
java.lang.Object
|
+--com.icl.saxon.output.ProxyEmitter
|
+--com.icl.saxon.output.HTMLIndenter
- All Implemented Interfaces:
- Emitter
- public class HTMLIndenter
- extends ProxyEmitter
HTMLIndenter: This ProxyEmitter indents HTML elements, by adding whitespace
character data where appropriate.
The character data is never added when within an inline element.
The string used for indentation defaults to four spaces, but may be set using the
indent-chars property
Author Michael Kay (mhkay@iclway.co.uk)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLIndenter
public HTMLIndenter()
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Start of document
- Overrides:
startDocument in class ProxyEmitter
startElement
public void startElement(Name name,
AttributeCollection atts)
throws org.xml.sax.SAXException
- Output element start tag
- Overrides:
startElement in class ProxyEmitter
endElement
public void endElement(Name name)
throws org.xml.sax.SAXException
- Output element end tag
- Overrides:
endElement in class ProxyEmitter
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
- Output a processing instruction
- Overrides:
processingInstruction in class ProxyEmitter
characters
public void characters(char[] chars,
int start,
int len)
throws org.xml.sax.SAXException
- Output character data
- Overrides:
characters in class ProxyEmitter
ignorableWhitespace
public void ignorableWhitespace(char[] chars,
int start,
int len)
throws org.xml.sax.SAXException
- Output ignorable white space
comment
public void comment(char[] chars,
int start,
int len)
throws org.xml.sax.SAXException
- Output a comment
- Overrides:
comment in class ProxyEmitter
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- End of document
- Overrides:
endDocument in class ProxyEmitter