Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.xml.pipeline.EventFilter
gnu.xml.pipeline.WellFormednessFilter
public final class WellFormednessFilter
extends EventFilter
Field Summary |
Fields inherited from class gnu.xml.pipeline.EventFilter | |
DECL_HANDLER , FEATURE_URI , LEXICAL_HANDLER , PROPERTY_URI |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public WellFormednessFilter()
Swallows all events after performing well formedness checks.
public WellFormednessFilter(EventConsumer consumer)
Passes events through to the specified consumer, after first processing them.
public void characters(ch[] , int start, int length) throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- characters in interface ContentHandler
- Overrides:
- characters in interface EventFilter
public void comment(ch[] , int start, int length) throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- comment in interface LexicalHandler
- Overrides:
- comment in interface EventFilter
public void endCDATA() throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- endCDATA in interface LexicalHandler
- Overrides:
- endCDATA in interface EventFilter
public void endDTD() throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- endDTD in interface LexicalHandler
- Overrides:
- endDTD in interface EventFilter
public void endDocument() throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- endDocument in interface ContentHandler
- Overrides:
- endDocument in interface EventFilter
public void endElement(String uri, String localName, String qName) throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- endElement in interface ContentHandler
- Overrides:
- endElement in interface EventFilter
public void ignorableWhitespace(ch[] , int start, int length) throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- ignorableWhitespace in interface ContentHandler
- Overrides:
- ignorableWhitespace in interface EventFilter
public void notationDecl(String name, String publicId, String systemId) throws SAXException
SAX1: passes this callback to the next consumer, if any
- Specified by:
- notationDecl in interface DTDHandler
- Overrides:
- notationDecl in interface EventFilter
public void processingInstruction(String target, String data) throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- processingInstruction in interface ContentHandler
- Overrides:
- processingInstruction in interface EventFilter
public void reset()
Resets state as if any preceding event stream was well formed. Particularly useful if it ended through some sort of error, and the endDocument call wasn't made.
public void setDocumentLocator(Locator locator)
Throws an exception when called after startDocument.
- Specified by:
- setDocumentLocator in interface ContentHandler
- Overrides:
- setDocumentLocator in interface EventFilter
- Parameters:
locator
- the locator, to be used in error reporting or relative URI resolution.
public void startCDATA() throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- startCDATA in interface LexicalHandler
- Overrides:
- startCDATA in interface EventFilter
public void startDTD(String root, String publicId, String systemId) throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- startDTD in interface LexicalHandler
- Overrides:
- startDTD in interface EventFilter
public void startDocument() throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- startDocument in interface ContentHandler
- Overrides:
- startDocument in interface EventFilter
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
SAX2: passes this callback to the next consumer, if any
- Specified by:
- startElement in interface ContentHandler
- Overrides:
- startElement in interface EventFilter
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
SAX1: passes this callback to the next consumer, if any
- Specified by:
- unparsedEntityDecl in interface DTDHandler
- Overrides:
- unparsedEntityDecl in interface EventFilter