org.exolab.castor.xml.util
Class DocumentHandlerAdapter
java.lang.Object
org.exolab.castor.xml.util.DocumentHandlerAdapter
- All Implemented Interfaces:
- ContentHandler
public class DocumentHandlerAdapter
- extends Object
- implements ContentHandler
A ContentHandler implementation that wraps a DocumentHandler. This
ContentHandler was written for the Marshaller and expects that QNames
are non-null in calls to startElement and endElement methods as well
as inside the Attributes list.
- Version:
- $Revision: 9147 $ $Date: 2004-09-10 12:15:10 -0600 (Fri, 10 Sep 2004) $
- Author:
- Keith Visco
|
Method Summary |
void |
characters(char[] chars,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
void |
ignorableWhitespace(char[] chars,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
|
void |
skippedEntity(String arg0)
|
void |
startDocument()
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentHandlerAdapter
public DocumentHandlerAdapter(DocumentHandler handler)
- Creates a new DocumentHandlerAdapter
- Parameters:
handler - the DocumentHandler to wrap (non-null).
characters
public void characters(char[] chars,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.characters(char[], int, int)
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.endDocument()
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.endElement(java.lang.String, java.lang.String,
java.lang.String)
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
- Specified by:
endPrefixMapping in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.endPrefixMapping(java.lang.String)
ignorableWhitespace
public void ignorableWhitespace(char[] chars,
int start,
int length)
throws SAXException
- Specified by:
ignorableWhitespace in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.ignorableWhitespace(char[], int, int)
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Specified by:
processingInstruction in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.processingInstruction(java.lang.String, java.lang.String)
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator in interface ContentHandler
- See Also:
ContentHandler.setDocumentLocator(org.xml.sax.Locator)
skippedEntity
public void skippedEntity(String arg0)
throws SAXException
- Specified by:
skippedEntity in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.skippedEntity(java.lang.String)
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.startDocument()
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
- Specified by:
startElement in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Specified by:
startPrefixMapping in interface ContentHandler
- Throws:
SAXException- See Also:
ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
Copyright © 2013. All Rights Reserved.