net.spy.digg.parsers
Class ErrorsParser

java.lang.Object
  extended by net.spy.digg.parsers.BaseParser
      extended by net.spy.digg.parsers.ErrorsParser

public class ErrorsParser
extends BaseParser

Parse a digg errors response.


Constructor Summary
ErrorsParser()
           
 
Method Summary
 java.util.Map<java.lang.Integer,java.lang.String> getErrors()
          Get the map of error IDs to names.
protected  java.lang.String getRootElementName()
          Get the name of the expected root element.
protected  void handleDocument(org.w3c.dom.Document doc)
          Delegated document parsing.
 
Methods inherited from class net.spy.digg.parsers.BaseParser
getAttr, getAttr, getDocument, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorsParser

public ErrorsParser()
Method Detail

getRootElementName

protected java.lang.String getRootElementName()
Description copied from class: BaseParser
Get the name of the expected root element.

Specified by:
getRootElementName in class BaseParser

handleDocument

protected void handleDocument(org.w3c.dom.Document doc)
                       throws org.xml.sax.SAXException,
                              java.io.IOException
Description copied from class: BaseParser
Delegated document parsing.

Specified by:
handleDocument in class BaseParser
Throws:
org.xml.sax.SAXException
java.io.IOException

getErrors

public java.util.Map<java.lang.Integer,java.lang.String> getErrors()
Get the map of error IDs to names.