public class WhitespaceIgnorer extends ContentProxy
ContentHandler.ignorableWhitespace(char[], int, int).
Currently only used in
xantlrtdom.TdomReader
ATTENTION does not care for namespaces, but requires "qname" (i.e. prefix
plus ":" plus localname) of the SAX event to be identical to the
element name in the DTD.out| Constructor and Description |
|---|
WhitespaceIgnorer(DTD.Dtd dtd,
ContentHandler out)
Only constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int len) |
void |
endElement(String uri,
String localName,
String qName) |
static boolean |
ignorable(char[] ch,
int start,
int len)
Fundamental predicate, decides whether character data is whitespace.
|
static boolean |
ignorable(String s) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs) |
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingpublic WhitespaceIgnorer(DTD.Dtd dtd, ContentHandler out)
dtd - the dtd which rules the ignoring/respecting of whitespace.out - target to which the sax events will be propagated.public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class ContentProxySAXExceptionpublic void characters(char[] ch,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class ContentProxySAXExceptionpublic static boolean ignorable(char[] ch,
int start,
int len)
public static boolean ignorable(String s)
public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class ContentProxySAXExceptionsee also the complete user documentation .