Package com.icl.saxon.output
Class XMLIndenter
- java.lang.Object
-
- com.icl.saxon.output.Emitter
-
- com.icl.saxon.output.ProxyEmitter
-
- com.icl.saxon.output.XMLIndenter
-
- All Implemented Interfaces:
Result
public class XMLIndenter extends ProxyEmitter
XMLIndenter: This ProxyEmitter indents elements, by adding character data where appropriate. The character data is always added as "ignorable white space", that is, it is never added adjacent to existing character data. 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
Constructors Constructor Description XMLIndenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] chars, int start, int len)Output character datavoidcomment(char[] chars, int start, int len)Output a commentvoidendDocument()End of documentvoidendElement(int tag)Output element end tagvoidignorableWhitespace(char[] chars, int start, int len)Output ignorable white spacevoidprocessingInstruction(String target, String data)Output a processing instructionvoidstartDocument()Start of documentvoidstartElement(int tag, 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
-
-
-
-
Method Detail
-
startDocument
public void startDocument() throws TransformerExceptionStart of document- Overrides:
startDocumentin classProxyEmitter- Throws:
TransformerException
-
startElement
public void startElement(int tag, Attributes atts, int[] namespaces, int nscount) throws TransformerExceptionOutput element start tag- Overrides:
startElementin classProxyEmitternamespaces- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount- Number of significant entries within namespaces array- Throws:
TransformerException
-
endElement
public void endElement(int tag) throws TransformerExceptionOutput element end tag- Overrides:
endElementin classProxyEmitter- Throws:
TransformerException
-
processingInstruction
public void processingInstruction(String target, String data) throws TransformerException
Output a processing instruction- Overrides:
processingInstructionin classProxyEmitter- Throws:
TransformerException
-
characters
public void characters(char[] chars, int start, int len) throws TransformerExceptionOutput character data- Overrides:
charactersin classProxyEmitter- Throws:
TransformerException
-
ignorableWhitespace
public void ignorableWhitespace(char[] chars, int start, int len) throws TransformerExceptionOutput ignorable white space- Throws:
TransformerException
-
comment
public void comment(char[] chars, int start, int len) throws TransformerExceptionOutput a comment- Overrides:
commentin classProxyEmitter- Throws:
TransformerException
-
endDocument
public void endDocument() throws TransformerExceptionEnd of document- Overrides:
endDocumentin classProxyEmitter- Throws:
TransformerException
-
-