|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.xml.sax.AbstractSAXProducer
public abstract class AbstractSAXProducer
This abstract class provides utility methods to implement a producer for SAX events..
| Field Summary | |
|---|---|
protected ContentHandler |
contentHandler
The ContentHandler receiving SAX events. |
protected static ContentHandler |
EMPTY_CONTENT_HANDLER
Empty, do-nothing content handler |
protected LexicalHandler |
lexicalHandler
The LexicalHandler receiving SAX events. |
| Constructor Summary | |
|---|---|
AbstractSAXProducer()
|
|
| Method Summary | |
|---|---|
void |
recycle()
Recycle the producer by removing references, and resetting handlers to null (empty) implementations. |
void |
setContentHandler(ContentHandler handler)
Set the ContentHandler that will receive XML data. |
| 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 ContentHandler contentHandler
ContentHandler receiving SAX events.
protected LexicalHandler lexicalHandler
LexicalHandler receiving SAX events.
| Constructor Detail |
|---|
public AbstractSAXProducer()
| Method Detail |
|---|
public void setContentHandler(ContentHandler handler)
ContentHandler that will receive XML data.
Subclasses may retrieve this ContentHandler instance
accessing the protected super.contentHandler field.
handler - content handler, should never be null.public void recycle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||