|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFilterChainer
public class FilterChainer
Links together a chain of SAX filters. Serves as a temporary scaffold to construct an intermediate filter chain, prior to use. When the intermediate chain is finished, you terminate its first filter with a parent reader, and terminate its last with a content handler. Then you typically call parse() on the last filter. The chainer itself may be discarded.
Not intended for use after a chain is terminated.
Not intended to join muliple chains. Accepts only single, unlinked filters for linking.
Not thread safe.
Constructor Summary | |
---|---|
FilterChainer()
|
Method Summary | |
---|---|
void |
append(XMLFilterCH newLast)
Appends a new filter as the chain's last. |
XMLFilterCH |
first()
The first filter of the chain. |
XMLFilterCH |
last()
The last filter of the chain. |
void |
prepend(XMLFilterCH newFirst)
Prepends a new filter as the chain's first. |
void |
terminateFirst(XMLReader reader)
Convenience method to terminate the chain's first filter, with a reader. |
void |
terminateLast(ContentHandler contentHandler)
Convenience method to terminate the chain's last filter, with a content handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterChainer()
Method Detail |
---|
public final void append(XMLFilterCH newLast)
AssertionError
- if previous last filter already has a content handler
AssertionError
- if newLast already has a content handler or parent readerpublic final XMLFilterCH first()
public final XMLFilterCH last()
public final void prepend(XMLFilterCH newFirst)
AssertionError
- if previous first filter already has a parent reader
AssertionError
- if newFirst already has a content handler or parent readerpublic void terminateFirst(XMLReader reader)
public final void terminateLast(ContentHandler contentHandler)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |