| java.lang.Object org.cyberneko.html.filters.DefaultFilter org.cyberneko.html.filters.Identity
Identity | public class Identity extends DefaultFilter (Code) | | This filter performs the identity operation of the original
document event stream generated by the HTML scanner by removing
events that are synthesized by the tag balancer. This operation
is essentially the same as turning off tag-balancing in the
parser. However, this filter is useful when you want the tag
balancer to report "errors" but do not want the synthesized
events in the output.
Note:
This filter requires the augmentations feature to be turned on.
For example:
XMLParserConfiguration parser = new HTMLConfiguration();
parser.setFeature("http://cyberneko.org/html/features/augmentations", true);
Note:
This isn't exactly the identify transform because the
element and attributes names may have been modified from the
original document. For example, by default, NekoHTML converts
element names to upper-case and attribute names to lower-case.
author: Andy Clark version: $Id: Identity.java,v 1.4 2005/02/14 03:56:54 andyc Exp $ |
Method Summary | |
public void | emptyElement(QName element, XMLAttributes attributes, Augmentations augs) Empty element. | public void | endElement(QName element, Augmentations augs) End element. | public void | startElement(QName element, XMLAttributes attributes, Augmentations augs) Start element. | protected static boolean | synthesized(Augmentations augs) Returns true if the information provided is synthesized. |
AUGMENTATIONS | final protected static String AUGMENTATIONS(Code) | | Augmentations feature identifier.
|
FILTERS | final protected static String FILTERS(Code) | | Filters property identifier.
|
emptyElement | public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code) | | Empty element.
|
endElement | public void endElement(QName element, Augmentations augs) throws XNIException(Code) | | End element.
|
startElement | public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code) | | Start element.
|
synthesized | protected static boolean synthesized(Augmentations augs)(Code) | | Returns true if the information provided is synthesized.
|
Fields inherited from org.cyberneko.html.filters.DefaultFilter | protected XMLDocumentHandler fDocumentHandler(Code)(Java Doc) protected XMLDocumentSource fDocumentSource(Code)(Java Doc)
|
Methods inherited from org.cyberneko.html.filters.DefaultFilter | public void characters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void doctypeDecl(String root, String publicId, String systemId, Augmentations augs) throws XNIException(Code)(Java Doc) public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void endCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void endDocument(Augmentations augs) throws XNIException(Code)(Java Doc) public void endElement(QName element, Augmentations augs) throws XNIException(Code)(Java Doc) public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc) public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException(Code)(Java Doc) public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc) public XMLDocumentSource getDocumentSource()(Code)(Java Doc) public Boolean getFeatureDefault(String featureId)(Code)(Java Doc) public Object getPropertyDefault(String propertyId)(Code)(Java Doc) public String[] getRecognizedFeatures()(Code)(Java Doc) public String[] getRecognizedProperties()(Code)(Java Doc) public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) protected static String[] merge(String[] array1, String[] array2)(Code)(Java Doc) public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc) public void setDocumentHandler(XMLDocumentHandler handler)(Code)(Java Doc) public void setDocumentSource(XMLDocumentSource source)(Code)(Java Doc) public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc) public void startCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException(Code)(Java Doc) public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri, Augmentations augs) throws XNIException(Code)(Java Doc) public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)(Java Doc)
|
|
|