|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.xml.pipeline.EventFilter fi.karppinen.xml.BodyContentPassFilter
public class BodyContentPassFilter
This filter supresses all ContentHandler
events except those that happen between
XHTML 1.x body
start and end. The filter assumes that there is exactly one
body
element. In particular, nested body
elements are not supported.
Field Summary | |
---|---|
private boolean |
pass
|
Fields inherited from class gnu.xml.pipeline.EventFilter |
---|
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI |
Constructor Summary | |
---|---|
BodyContentPassFilter()
|
|
BodyContentPassFilter(gnu.xml.pipeline.EventConsumer consumer)
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
skippedEntity(String name)
|
void |
startDocument()
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
|
Methods inherited from class gnu.xml.pipeline.EventFilter |
---|
attributeDecl, bind, chainTo, comment, elementDecl, endCDATA, endDTD, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, internalEntityDecl, notationDecl, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, startCDATA, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean pass
Constructor Detail |
---|
public BodyContentPassFilter()
public BodyContentPassFilter(gnu.xml.pipeline.EventConsumer consumer)
consumer
- Method Detail |
---|
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.characters(char[], int, int)
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.endDocument()
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.endElement(java.lang.String,
java.lang.String, java.lang.String)
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.ignorableWhitespace(char[], int, int)
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.processingInstruction(java.lang.String,
java.lang.String)
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
skippedEntity
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.skippedEntity(java.lang.String)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.startDocument()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |