|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.xml.AbstractXMLProducer
This abstract class provides default implementation of the methods specified
by the XMLProducer
interface.
Field Summary | |
protected org.xml.sax.ContentHandler |
contentHandler
The ContentHandler receiving SAX events. |
protected org.xml.sax.ext.LexicalHandler |
lexicalHandler
The LexicalHandler receiving SAX events. |
protected XMLConsumer |
xmlConsumer
The XMLConsumer receiving SAX events. |
Constructor Summary | |
AbstractXMLProducer()
|
Method Summary | |
void |
recycle()
Recycle the producer by removing references |
void |
setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data.
|
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Set the ContentHandler that will receive XML data.
|
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
Set the LexicalHandler that will receive XML data.
|
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 |
Field Detail |
protected XMLConsumer xmlConsumer
XMLConsumer
receiving SAX events.
protected org.xml.sax.ContentHandler contentHandler
ContentHandler
receiving SAX events.
protected org.xml.sax.ext.LexicalHandler lexicalHandler
LexicalHandler
receiving SAX events.
Constructor Detail |
public AbstractXMLProducer()
Method Detail |
public void setConsumer(XMLConsumer consumer)
XMLConsumer
that will receive XML data.
setContentHandler(consumer)
and setLexicalHandler(consumer)
.
setConsumer
in interface XMLProducer
public void setContentHandler(org.xml.sax.ContentHandler handler)
ContentHandler
that will receive XML data.
ContentHandler
instance
accessing the protected super.contentHandler
field.
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
LexicalHandler
that will receive XML data.
LexicalHandler
instance
accessing the protected super.lexicalHandler
field.
java.lang.IllegalStateException
- If the LexicalHandler
or
the XMLConsumer
were
already set.public void recycle()
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |