|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.onemind.commons.java.xml.digest.SaxDigesterHandler
The SaxDigesterHandler use digesters to digest the elements in the xml. The digesters can be added using the addDigester(). By default the sequential digester list is used.
Constructor Summary | |
SaxDigesterHandler()
Constructor |
Method Summary | |
void |
addDigester(ElementDigester dig)
Adding a digester to the root path |
void |
addDigester(java.lang.String path,
ElementDigester dig)
Add a digester for the path |
void |
addSubDigester(ElementDigester dig)
Add a subdigester to current element path |
void |
addSubDigester(java.lang.String prefixPath,
ElementDigester dig)
Add a sub digester at a path of current path + prefixPath |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
java.lang.String |
getCurrentPath()
Get the current element path |
void |
parse(java.io.InputStream stream)
Parse an input |
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SaxDigesterHandler()
Method Detail |
public void addDigester(ElementDigester dig)
dig
- the digesterpublic void addDigester(java.lang.String path, ElementDigester dig)
path
- the pathdig
- the digesterpublic void addSubDigester(ElementDigester dig)
dig
- the digesterpublic void addSubDigester(java.lang.String prefixPath, ElementDigester dig)
prefixPath
- the prefix pathdig
- the digesterpublic void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.String getCurrentPath()
public void startDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void parse(java.io.InputStream stream) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
stream
- the stream
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |