|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.xml.AbstractXMLProducer | +--org.apache.cocoon.xml.DocumentHandlerAdapter
This class is an utility class "adapting" a SAX version 1.0
DocumentHandler
, to SAX version 2 ContentHandler
.
This class fully supports XML namespaces, converting xmlns
and
xmlns:...
element attributes into appropriate
startPrefixMapping(...)
and endPrefixMapping(...)
calls.
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, lexicalHandler, xmlConsumer |
Constructor Summary | |
DocumentHandlerAdapter()
Create a new DocumentHandlerAdapter instance. |
|
DocumentHandlerAdapter(org.xml.sax.ContentHandler content)
Create a new DocumentHandlerAdapter instance. |
|
DocumentHandlerAdapter(XMLConsumer consumer)
Create a new DocumentHandlerAdapter instance. |
Method Summary | |
void |
characters(char[] ch,
int start,
int len)
Receive notification of character data. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(java.lang.String name)
Receive notification of the end of an element. |
void |
ignorableWhitespace(char[] ch,
int start,
int len)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of a processing instruction. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receive an object for locating the origin of SAX document events. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList a)
Receive notification of the beginning of an element. |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
recycle, setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentHandlerAdapter()
DocumentHandlerAdapter
instance.public DocumentHandlerAdapter(XMLConsumer consumer)
DocumentHandlerAdapter
instance.public DocumentHandlerAdapter(org.xml.sax.ContentHandler content)
DocumentHandlerAdapter
instance.Method Detail |
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.DocumentHandler
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.DocumentHandler
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.DocumentHandler
public void startElement(java.lang.String name, org.xml.sax.AttributeList a) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.DocumentHandler
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.DocumentHandler
public void characters(char[] ch, int start, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.DocumentHandler
public void ignorableWhitespace(char[] ch, int start, int len) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.DocumentHandler
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.DocumentHandler
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |