public abstract class AbstractContentHandler extends Object implements ContentHandler
Modifier and Type | Field and Description |
---|---|
protected Options |
options |
protected AbstractContentHandler |
parent |
protected XMLReader |
reader |
protected ShapeChangeResult |
result |
protected StringBuffer |
sb |
protected List<String> |
stringList |
Constructor and Description |
---|
AbstractContentHandler(ShapeChangeResult result,
Options options,
XMLReader reader,
AbstractContentHandler parent) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Appends the content of the character array to the internal string buffer.
|
void |
endDocument() |
abstract void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startDocument() |
abstract void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
protected boolean |
toBooleanValue(StringBuffer sb) |
protected ShapeChangeResult result
protected Options options
protected XMLReader reader
protected AbstractContentHandler parent
protected StringBuffer sb
public AbstractContentHandler(ShapeChangeResult result, Options options, XMLReader reader, AbstractContentHandler parent)
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public abstract void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public abstract void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
ContentHandler.characters(char[], int, int)
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 skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
protected boolean toBooleanValue(StringBuffer sb)
sb
- true
if the value of the StringBuffer is 'true' or
'1', else false
.Copyright © 2018. All rights reserved.