public class DefaultDigester extends java.lang.Object implements ElementDigester
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_elementName
the element name
|
| Constructor and Description |
|---|
DefaultDigester(java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(SaxDigesterHandler handler,
char[] chars,
int offset,
int length)
Handle the characters
|
void |
endDigest(SaxDigesterHandler handler)
End the element
|
java.lang.String |
getElementName()
Get the element name
|
void |
startDigest(SaxDigesterHandler handler,
org.xml.sax.Attributes attrs)
Start an element with the given attributes
|
public DefaultDigester(java.lang.String name)
name - the namepublic void startDigest(SaxDigesterHandler handler, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startDigest in interface ElementDigesterhandler - the handlerattrs - the attributesorg.xml.sax.SAXException - if there's handling exceptionpublic void endDigest(SaxDigesterHandler handler) throws org.xml.sax.SAXException
endDigest in interface ElementDigesterhandler - the handlerorg.xml.sax.SAXException - if there's handling exceptionpublic void characters(SaxDigesterHandler handler, char[] chars, int offset, int length) throws org.xml.sax.SAXException
characters in interface ElementDigesterhandler - the handlerchars - the charactersoffset - the offsetlength - the lengthorg.xml.sax.SAXException - if there's parse problempublic final java.lang.String getElementName()
getElementName in interface ElementDigester