| java.lang.Object org.xml.sax.helpers.XMLFilterImpl com.sun.xml.txw2.output.IndentingXMLFilter
Method Summary | |
public void | characters(char ch, int start, int length) Write a sequence of characters. | public void | comment(char ch, int start, int length) | public void | endCDATA() | public void | endDTD() | public void | endElement(String uri, String localName, String qName) Write an end tag. | public void | endEntity(String name) | public int | getIndentStep() Return the current indent step. | public LexicalHandler | getLexicalHandler() | public void | setIndentStep(int indentStep) Set the current indent step. | public void | setIndentStep(String s) | public void | setLexicalHandler(LexicalHandler lexical) | public void | startCDATA() | public void | startDTD(String name, String publicId, String systemId) | public void | startElement(String uri, String localName, String qName, Attributes atts) Write a start tag. | public void | startEntity(String name) |
IndentingXMLFilter | public IndentingXMLFilter()(Code) | | |
characters | public void characters(char ch, int start, int length) throws SAXException(Code) | | Write a sequence of characters.
Parameters: ch - The characters to write. Parameters: start - The starting position in the array. Parameters: length - The number of characters to use. exception: org.xml.sax.SAXException - If there is an errorwriting the characters, or if a filter furtherdown the chain raises an exception. See Also: XMLWriter.characters(char[]intint) |
endElement | public void endElement(String uri, String localName, String qName) throws SAXException(Code) | | Write an end tag.
If the element has contained other elements, the tag
will appear indented on a new line; otherwise, it will
appear immediately following whatever came before.
The newline and indentation will be passed on down
the filter chain through regular characters events.
Parameters: uri - The element's Namespace URI. Parameters: localName - The element's local name. Parameters: qName - The element's qualified (prefixed) name. exception: org.xml.sax.SAXException - If there is an errorwriting the end tag, or if a filter furtherdown the chain raises an exception. See Also: XMLWriter.endElement(StringStringString) |
getIndentStep | public int getIndentStep()(Code) | | Return the current indent step.
Return the current indent step: each start tag will be
indented by this number of spaces times the number of
ancestors that the element has.
The number of spaces in each indentation step,or 0 or less for no indentation. See Also: IndentingXMLFilter.setIndentStep(int) |
setIndentStep | public void setIndentStep(int indentStep)(Code) | | Set the current indent step.
Parameters: indentStep - The new indent step (0 or less for noindentation). See Also: IndentingXMLFilter.getIndentStep() |
startElement | public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code) | | Write a start tag.
Each tag will begin on a new line, and will be
indented by the current indent step times the number
of ancestors that the element has.
The newline and indentation will be passed on down
the filter chain through regular characters events.
Parameters: uri - The element's Namespace URI. Parameters: localName - The element's local name. Parameters: qName - The element's qualified (prefixed) name. Parameters: atts - The element's attribute list. exception: org.xml.sax.SAXException - If there is an errorwriting the start tag, or if a filter furtherdown the chain raises an exception. See Also: XMLWriter.startElement(StringStringStringAttributes) |
Methods inherited from org.xml.sax.helpers.XMLFilterImpl | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public XMLReader getParent()(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void parse(InputSource input) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setParent(XMLReader parent)(Code)(Java Doc) public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|