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
_elementName
the 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 void
characters(SaxDigesterHandler handler, char[] chars, int offset, int length)
Handle the charactersvoid
endDigest(SaxDigesterHandler handler)
End the elementjava.lang.String
getElementName()
Get the element namevoid
startDigest(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:
startDigest
in 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:
endDigest
in 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:
characters
in 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:
getElementName
in interfaceElementDigester
- Returns:
- the element name
-
-