XMLFilter that can fork an event to another ContentHandler
in the middle.
The side handler receives SAX events before the next handler in the filter chain does.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Locator | |
| private final ArrayList | namespaces
In-scope namespace mapping. |
| private ContentHandler | side
Non-null if we are also forking events to this handler. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| depth | back to summary |
|---|---|
| private int depth The depth of the current element that the | |
| loc | back to summary |
|---|---|
| private Locator loc | |
| namespaces | back to summary |
|---|---|
| private final ArrayList<String> namespaces In-scope namespace mapping. namespaces[2n ] := prefix namespaces[2n+1] := namespace URI | |
| side | back to summary |
|---|---|
| private ContentHandler side Non-null if we are also forking events to this handler. | |
| ForkingFilter | back to summary |
|---|---|
| public ForkingFilter() | |
| ForkingFilter | back to summary |
|---|---|
| public ForkingFilter(ContentHandler next) | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int start, int length) throws SAXException Overrides org. Implements org. Doc from org. Filter a character data event.
| |
| endDocument | back to summary |
|---|---|
| public void endDocument() throws SAXException Overrides org. Implements org. Doc from org. Filter an end document event.
| |
| endElement | back to summary |
|---|---|
| public void endElement(String uri, String localName, String qName) throws SAXException Overrides org. Implements org. Doc from org. Filter an end element event.
| |
| endPrefixMapping | back to summary |
|---|---|
| public void endPrefixMapping(String prefix) throws SAXException Overrides org. Implements org. Doc from org. Filter an end Namespace prefix mapping event.
| |
| getDocumentLocator | back to summary |
|---|---|
| public Locator getDocumentLocator() | |
| getSideHandler | back to summary |
|---|---|
| public ContentHandler getSideHandler() | |
| ignorableWhitespace | back to summary |
|---|---|
| public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException Overrides org. Implements org. Doc from org. Filter an ignorable whitespace event.
| |
| reset | back to summary |
|---|---|
| private void reset() | |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator locator) Overrides org. Implements org. Doc from org. Filter a new document locator event.
| |
| startDocument | back to summary |
|---|---|
| public void startDocument() throws SAXException Overrides org. Implements org. Doc from org. Filter a start document event.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException Overrides org. Implements org. Doc from org. Filter a start element event.
| |
| startForking | back to summary |
|---|---|
| public void startForking(String uri, String localName, String qName, Attributes atts, ContentHandler side) throws SAXException Starts the event forking. | |
| startPrefixMapping | back to summary |
|---|---|
| public void startPrefixMapping(String prefix, String uri) throws SAXException Overrides org. Implements org. Doc from org. Filter a start Namespace prefix mapping event.
| |