Class DefaultDigester
- java.lang.Object
-
- org.onemind.commons.java.xml.digest.DefaultDigester
-
- All Implemented Interfaces:
ElementDigester
- Direct Known Subclasses:
AbstractElementCreatorDigester,XmlPropertyElementDigester
public class DefaultDigester extends java.lang.Object implements ElementDigester
A default digesters that does nothing- Author:
- TiongHiang Lee (thlee@thinklient.org)
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_elementNamethe element name
-
Constructor Summary
Constructors Constructor Description DefaultDigester(java.lang.String name)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(SaxDigesterHandler handler, char[] chars, int offset, int length)Handle the charactersvoidendDigest(SaxDigesterHandler handler)End the elementjava.lang.StringgetElementName()Get the element namevoidstartDigest(SaxDigesterHandler handler, org.xml.sax.Attributes attrs)Start an element with the given attributes
-
-
-
Method Detail
-
startDigest
public void startDigest(SaxDigesterHandler handler, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
Start an element with the given attributes- Specified by:
startDigestin interfaceElementDigester- Parameters:
handler- the handlerattrs- the attributes- Throws:
org.xml.sax.SAXException- if there's handling exception
-
endDigest
public void endDigest(SaxDigesterHandler handler) throws org.xml.sax.SAXException
End the element- Specified by:
endDigestin interfaceElementDigester- Parameters:
handler- the handler- Throws:
org.xml.sax.SAXException- if there's handling exception
-
characters
public void characters(SaxDigesterHandler handler, char[] chars, int offset, int length) throws org.xml.sax.SAXException
Handle the characters- Specified by:
charactersin interfaceElementDigester- Parameters:
handler- the handlerchars- the charactersoffset- the offsetlength- the length- Throws:
org.xml.sax.SAXException- if there's parse problem
-
getElementName
public final java.lang.String getElementName()
Get the element name- Specified by:
getElementNamein interfaceElementDigester- Returns:
- the element name
-
-