|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
public abstract class AbstractXMLProducer
This abstract class provides default implementation of the methods specified
by the XMLProducer interface.
| Field Summary | |
|---|---|
protected ContentHandler |
contentHandler
The ContentHandler receiving SAX events. |
protected static ContentHandler |
EMPTY_CONTENT_HANDLER
|
protected 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, and resetting handlers to null (empty) implementations. |
void |
setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data. |
void |
setContentHandler(ContentHandler handler)
Set the ContentHandler that will receive XML data. |
void |
setLexicalHandler(LexicalHandler handler)
Set the LexicalHandler that will receive XML data. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final ContentHandler EMPTY_CONTENT_HANDLER
protected XMLConsumer xmlConsumer
XMLConsumer receiving SAX events.
protected ContentHandler contentHandler
ContentHandler receiving SAX events.
protected 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 XMLProducerpublic void setContentHandler(ContentHandler handler)
ContentHandler that will receive XML data.
ContentHandler instance
accessing the protected super.contentHandler field.
public void setLexicalHandler(LexicalHandler handler)
LexicalHandler that will receive XML data.
LexicalHandler instance
accessing the protected super.lexicalHandler field.
public void recycle()
recycle in interface Recyclable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||