sk.baka.ambient.collection.ampache
Class AmpacheClient.ErrorHandlingHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by sk.baka.ambient.collection.ampache.AmpacheClient.ErrorHandlingHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
AmpacheClient

protected static class AmpacheClient.ErrorHandlingHandler
extends DefaultHandler

Superclass for all handlers handling Ampache output. Handles errors.

Author:
Martin Vysny

Field Summary
protected  String textContents
          Text contents of the last element.
 
Constructor Summary
protected AmpacheClient.ErrorHandlingHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String localName, String name)
           
 void startDocument()
           
 void startElement(String uri, String localName, String name, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, 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
 

Field Detail

textContents

protected String textContents
Text contents of the last element. Intended to be read in the endElement(String, String, String) event.

Constructor Detail

AmpacheClient.ErrorHandlingHandler

protected AmpacheClient.ErrorHandlingHandler()
Method Detail

startDocument

public void startDocument()
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String name)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler


Copyright © 2007-2008. All Rights Reserved.