|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.output.Emitter com.icl.saxon.output.ProxyEmitter com.icl.saxon.output.HTMLIndenter
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 H. Kay
Field Summary |
Fields inherited from class com.icl.saxon.output.ProxyEmitter |
baseEmitter, outputProperties |
Fields inherited from class com.icl.saxon.output.Emitter |
locator, namePool, outputStream, systemId, writer |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
HTMLIndenter()
|
Method Summary | |
void |
characters(char[] chars,
int start,
int len)
Output character data |
void |
comment(char[] chars,
int start,
int len)
Output a comment |
void |
endDocument()
End of document |
void |
endElement(int nameCode)
Output element end tag |
void |
ignorableWhitespace(char[] chars,
int start,
int len)
Output ignorable white space |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Output a processing instruction |
void |
startDocument()
Start of document |
void |
startElement(int nameCode,
org.xml.sax.Attributes atts,
int[] namespaces,
int nscount)
Output element start tag |
Methods inherited from class com.icl.saxon.output.ProxyEmitter |
setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriter |
Methods inherited from class com.icl.saxon.output.Emitter |
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTMLIndenter()
Method Detail |
public void startDocument() throws TransformerException
startDocument
in class ProxyEmitter
TransformerException
public void startElement(int nameCode, org.xml.sax.Attributes atts, int[] namespaces, int nscount) throws TransformerException
startElement
in class ProxyEmitter
TransformerException
public void endElement(int nameCode) throws TransformerException
endElement
in class ProxyEmitter
TransformerException
public void processingInstruction(java.lang.String target, java.lang.String data) throws TransformerException
processingInstruction
in class ProxyEmitter
TransformerException
public void characters(char[] chars, int start, int len) throws TransformerException
characters
in class ProxyEmitter
TransformerException
public void ignorableWhitespace(char[] chars, int start, int len) throws TransformerException
TransformerException
public void comment(char[] chars, int start, int len) throws TransformerException
comment
in class ProxyEmitter
TransformerException
public void endDocument() throws TransformerException
endDocument
in class ProxyEmitter
TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |