|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.spy.digg.parsers.BaseParser
public abstract class BaseParser
Base parser class.
| Constructor Summary | |
|---|---|
BaseParser()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getAttr(org.w3c.dom.Node n,
java.lang.String s)
Get the named attribute for the given node. |
static java.lang.String |
getAttr(org.w3c.dom.Node n,
java.lang.String s,
java.lang.String def)
Get the named attribute for the given node, or a default. |
protected org.w3c.dom.Document |
getDocument(java.io.InputStream is,
java.lang.String rootEl)
Get a DOM document from the input stream. |
protected abstract java.lang.String |
getRootElementName()
Get the name of the expected root element. |
protected abstract void |
handleDocument(org.w3c.dom.Document doc)
Delegated document parsing. |
void |
parse(java.io.InputStream is)
Parse from the given input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseParser()
| Method Detail |
|---|
protected org.w3c.dom.Document getDocument(java.io.InputStream is,
java.lang.String rootEl)
throws org.xml.sax.SAXException,
java.io.IOException
is - the input streamrootEl - the expected root element
org.xml.sax.SAXException
java.io.IOExceptionprotected abstract java.lang.String getRootElementName()
public void parse(java.io.InputStream is)
throws org.xml.sax.SAXException,
java.io.IOException
org.xml.sax.SAXException
java.io.IOException
protected abstract void handleDocument(org.w3c.dom.Document doc)
throws org.xml.sax.SAXException,
java.io.IOException
org.xml.sax.SAXException
java.io.IOException
public static java.lang.String getAttr(org.w3c.dom.Node n,
java.lang.String s)
public static java.lang.String getAttr(org.w3c.dom.Node n,
java.lang.String s,
java.lang.String def)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||