public class XMLSerializer.CharacterValidatingContentHandler extends Object implements ContentHandler, LexicalHandler
Modifier and Type | Field and Description |
---|---|
boolean |
prevNL |
boolean |
prevWasEndElement |
public int getIndent()
public int nextIndent()
public int prevIndent()
public int getIndentDelta()
public void setIndentDelta(int indentDelta)
public void lastOutputNodeAddLevel()
public void setLastOutputNode(Node n)
public Node getLastOutputNode()
public Node getLastOutputNodePrevLevel()
public void lastOutputNodeClearLevel()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void endEntity(String arg0) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void startDTD(String arg0, String arg1, String arg2) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void startEntity(String arg0) throws SAXException
startEntity
in interface LexicalHandler
SAXException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.