gnu.xml.pipeline
public final class WellFormednessFilter extends EventFilter
Other checks for event stream correctness may be provided in the future. For example, insisting that entity boundaries nest correctly, namespace scopes nest correctly, namespace values never contain relative URIs, attributes don't have "<" characters; and more.
Version: $Date: 2001/11/09 22:53:17 $
Constructor Summary | |
---|---|
WellFormednessFilter()
Swallows all events after performing well formedness checks. | |
WellFormednessFilter(EventConsumer consumer)
Passes events through to the specified consumer, after first
processing them. |
Method Summary | |
---|---|
void | characters(char[] ch, int start, int length) |
void | comment(char[] ch, int start, int length) |
void | endCDATA() |
void | endDocument() |
void | endDTD() |
void | endElement(String uri, String localName, String qName) |
void | ignorableWhitespace(char[] ch, int start, int length) |
void | notationDecl(String name, String publicId, String systemId) |
void | processingInstruction(String target, String data) |
void | reset()
Resets state as if any preceding event stream was well formed.
|
void | setDocumentLocator(Locator locator)
Throws an exception when called after startDocument.
|
void | startCDATA() |
void | startDocument() |
void | startDTD(String root, String publicId, String systemId) |
void | startElement(String uri, String localName, String qName, Attributes atts) |
void | unparsedEntityDecl(String name, String publicId, String systemId, String notationName) |
Parameters: locator the locator, to be used in error reporting or relative URI resolution.
Throws: IllegalStateException when called after the document has already been started
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.