|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.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(java.lang.String root,
java.lang.String publicId,
java.lang.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(java.lang.String name,
Augmentations augs)
End general entity. |
void |
endPrefixMapping(java.lang.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(java.lang.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,
java.lang.String encoding,
Augmentations augs)
Start document. |
void |
startDocument(XMLLocator locator,
java.lang.String encoding,
NamespaceContext nscontext,
Augmentations augs)
Start document. |
void |
startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Start element. |
void |
startGeneralEntity(java.lang.String name,
XMLResourceIdentifier id,
java.lang.String encoding,
Augmentations augs)
Start general entity. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri,
Augmentations augs)
Start prefix mapping. |
void |
textDecl(java.lang.String version,
java.lang.String encoding,
Augmentations augs)
Text declaration. |
void |
xmlDecl(java.lang.String version,
java.lang.String encoding,
java.lang.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 XMLDocumentSourcepublic XMLDocumentHandler getDocumentHandler()
getDocumentHandler in interface XMLDocumentSourcepublic void setDocumentSource(XMLDocumentSource source)
setDocumentSource in interface XMLDocumentHandlerpublic XMLDocumentSource getDocumentSource()
getDocumentSource in interface XMLDocumentHandler
public void startDocument(XMLLocator locator,
java.lang.String encoding,
NamespaceContext nscontext,
Augmentations augs)
throws XNIException
startDocument in interface XMLDocumentHandlerXNIException
public void xmlDecl(java.lang.String version,
java.lang.String encoding,
java.lang.String standalone,
Augmentations augs)
throws XNIException
xmlDecl in interface XMLDocumentHandlerXNIException
public void doctypeDecl(java.lang.String root,
java.lang.String publicId,
java.lang.String systemId,
Augmentations augs)
throws XNIException
doctypeDecl in interface XMLDocumentHandlerXNIException
public void comment(XMLString text,
Augmentations augs)
throws XNIException
comment in interface XMLDocumentHandlerXNIException
public void processingInstruction(java.lang.String target,
XMLString data,
Augmentations augs)
throws XNIException
processingInstruction in interface XMLDocumentHandlerXNIException
public void startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
throws XNIException
startElement in interface XMLDocumentHandlerXNIException
public void emptyElement(QName element,
XMLAttributes attributes,
Augmentations augs)
throws XNIException
emptyElement in interface XMLDocumentHandlerXNIException
public void characters(XMLString text,
Augmentations augs)
throws XNIException
characters in interface XMLDocumentHandlerXNIException
public void ignorableWhitespace(XMLString text,
Augmentations augs)
throws XNIException
ignorableWhitespace in interface XMLDocumentHandlerXNIException
public void startGeneralEntity(java.lang.String name,
XMLResourceIdentifier id,
java.lang.String encoding,
Augmentations augs)
throws XNIException
startGeneralEntity in interface XMLDocumentHandlerXNIException
public void textDecl(java.lang.String version,
java.lang.String encoding,
Augmentations augs)
throws XNIException
textDecl in interface XMLDocumentHandlerXNIException
public void endGeneralEntity(java.lang.String name,
Augmentations augs)
throws XNIException
endGeneralEntity in interface XMLDocumentHandlerXNIException
public void startCDATA(Augmentations augs)
throws XNIException
startCDATA in interface XMLDocumentHandlerXNIException
public void endCDATA(Augmentations augs)
throws XNIException
endCDATA in interface XMLDocumentHandlerXNIException
public void endElement(QName element,
Augmentations augs)
throws XNIException
endElement in interface XMLDocumentHandlerXNIException
public void endDocument(Augmentations augs)
throws XNIException
endDocument in interface XMLDocumentHandlerXNIException
public void startDocument(XMLLocator locator,
java.lang.String encoding,
Augmentations augs)
throws XNIException
XNIException
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri,
Augmentations augs)
throws XNIException
XNIException
public void endPrefixMapping(java.lang.String prefix,
Augmentations augs)
throws XNIException
XNIException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||