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 ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void endEntity(String arg0) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void startDTD(String arg0, String arg1, String arg2) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String arg0) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.