|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cyberneko.html.filters.DefaultFilter
This class implements a filter that simply passes document events to the next handler. It can be used as a base class to simplify the development of new document filters.
Field Summary | |
protected XMLDocumentHandler |
fDocumentHandler
Document handler. |
protected XMLDocumentSource |
fDocumentSource
Document source. |
Constructor Summary | |
DefaultFilter()
|
Method Summary | |
void |
characters(XMLString text,
Augmentations augs)
Characters. |
void |
comment(XMLString text,
Augmentations augs)
Comment. |
void |
doctypeDecl(String root,
String publicId,
String systemId,
Augmentations augs)
Doctype declaration. |
void |
emptyElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Empty element. |
void |
endCDATA(Augmentations augs)
End CDATA section. |
void |
endDocument(Augmentations augs)
End document. |
void |
endElement(QName element,
Augmentations augs)
End element. |
void |
endGeneralEntity(String name,
Augmentations augs)
End general entity. |
void |
endPrefixMapping(String prefix,
Augmentations augs)
End prefix mapping. |
XMLDocumentHandler |
getDocumentHandler()
Returns the document handler. |
XMLDocumentSource |
getDocumentSource()
Returns the document source. |
void |
ignorableWhitespace(XMLString text,
Augmentations augs)
Ignorable whitespace. |
void |
processingInstruction(String target,
XMLString data,
Augmentations augs)
Processing instruction. |
void |
setDocumentHandler(XMLDocumentHandler handler)
Sets the document handler. |
void |
setDocumentSource(XMLDocumentSource source)
Sets the document source. |
void |
startCDATA(Augmentations augs)
Start CDATA section. |
void |
startDocument(XMLLocator locator,
String encoding,
Augmentations augs)
Start document. |
void |
startDocument(XMLLocator locator,
String encoding,
NamespaceContext nscontext,
Augmentations augs)
Start document. |
void |
startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Start element. |
void |
startGeneralEntity(String name,
XMLResourceIdentifier id,
String encoding,
Augmentations augs)
Start general entity. |
void |
startPrefixMapping(String prefix,
String uri,
Augmentations augs)
Start prefix mapping. |
void |
textDecl(String version,
String encoding,
Augmentations augs)
Text declaration. |
void |
xmlDecl(String version,
String encoding,
String standalone,
Augmentations augs)
XML declaration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected XMLDocumentHandler fDocumentHandler
protected XMLDocumentSource fDocumentSource
Constructor Detail |
public DefaultFilter()
Method Detail |
public void setDocumentHandler(XMLDocumentHandler handler)
setDocumentHandler
in interface XMLDocumentSource
public XMLDocumentHandler getDocumentHandler()
getDocumentHandler
in interface XMLDocumentSource
public void setDocumentSource(XMLDocumentSource source)
setDocumentSource
in interface XMLDocumentHandler
public XMLDocumentSource getDocumentSource()
getDocumentSource
in interface XMLDocumentHandler
public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException
startDocument
in interface XMLDocumentHandler
XNIException
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException
xmlDecl
in interface XMLDocumentHandler
XNIException
public void doctypeDecl(String root, String publicId, String systemId, Augmentations augs) throws XNIException
doctypeDecl
in interface XMLDocumentHandler
XNIException
public void comment(XMLString text, Augmentations augs) throws XNIException
comment
in interface XMLDocumentHandler
XNIException
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException
processingInstruction
in interface XMLDocumentHandler
XNIException
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException
startElement
in interface XMLDocumentHandler
XNIException
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException
emptyElement
in interface XMLDocumentHandler
XNIException
public void characters(XMLString text, Augmentations augs) throws XNIException
characters
in interface XMLDocumentHandler
XNIException
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException
ignorableWhitespace
in interface XMLDocumentHandler
XNIException
public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException
startGeneralEntity
in interface XMLDocumentHandler
XNIException
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException
textDecl
in interface XMLDocumentHandler
XNIException
public void endGeneralEntity(String name, Augmentations augs) throws XNIException
endGeneralEntity
in interface XMLDocumentHandler
XNIException
public void startCDATA(Augmentations augs) throws XNIException
startCDATA
in interface XMLDocumentHandler
XNIException
public void endCDATA(Augmentations augs) throws XNIException
endCDATA
in interface XMLDocumentHandler
XNIException
public void endElement(QName element, Augmentations augs) throws XNIException
endElement
in interface XMLDocumentHandler
XNIException
public void endDocument(Augmentations augs) throws XNIException
endDocument
in interface XMLDocumentHandler
XNIException
public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException
XNIException
public void startPrefixMapping(String prefix, String uri, Augmentations augs) throws XNIException
XNIException
public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException
XNIException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |