org.abstracthorizon.danube.webdav.xml
Class WebDAVXMLHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.abstracthorizon.danube.webdav.xml.WebDAVXMLHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class WebDAVXMLHandler
extends DefaultHandler

WebDAV XML handler

Author:
Daniel Sendula

Field Summary
protected  StringBuffer buffer
          String buffer for tag values
protected  Object currentObject
          Current object
protected  NamespacesProvider namespacesProvider
          Namespace provider
 
Constructor Summary
WebDAVXMLHandler(NamespacesProvider namespacesProvider)
          Constructor
WebDAVXMLHandler(NamespacesProvider namespacesProvider, Object startObject)
          Constructor
 
Method Summary
 void characters(char[] chars, int start, int len)
           
 void endElement(String uri, String localName, String qName)
           
 void endPrefixMapping(String prefix)
           
 Object getResultObject()
          Returns resulted object
 InputSource resolveEntity(String publicId, String systemId)
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 void startPrefixMapping(String prefix, String uri)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentObject

protected Object currentObject
Current object


namespacesProvider

protected NamespacesProvider namespacesProvider
Namespace provider


buffer

protected StringBuffer buffer
String buffer for tag values

Constructor Detail

WebDAVXMLHandler

public WebDAVXMLHandler(NamespacesProvider namespacesProvider)
Constructor

Parameters:
namespacesProvider - namespace provider

WebDAVXMLHandler

public WebDAVXMLHandler(NamespacesProvider namespacesProvider,
                        Object startObject)
Constructor

Parameters:
namespacesProvider - namespace provider
startObject - start object
Method Detail

getResultObject

public Object getResultObject()
Returns resulted object

Returns:
resulted object or null

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class DefaultHandler
Throws:
SAXException

endPrefixMapping

public void endPrefixMapping(String prefix)
                      throws SAXException
Specified by:
endPrefixMapping in interface ContentHandler
Overrides:
endPrefixMapping in class DefaultHandler
Throws:
SAXException

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         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 qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws IOException,
                                 SAXException
Specified by:
resolveEntity in interface EntityResolver
Overrides:
resolveEntity in class DefaultHandler
Throws:
IOException
SAXException

characters

public void characters(char[] chars,
                       int start,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.