Class DefaultXMLFilter
- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- org.xwiki.rendering.wikimodel.xhtml.filter.DefaultXMLFilter
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,LexicalHandler,XMLFilter,XMLReader
- Direct Known Subclasses:
AccumulationXMLFilter,DTDXMLFilter,XHTMLWhitespaceXMLFilter
public class DefaultXMLFilter extends XMLFilterImpl implements LexicalHandler
- Since:
- 4.0M1
- Version:
- $Id: b835e5e8b3f65f2605ae506c182953847d5466e4 $
-
-
Field Summary
Fields Modifier and Type Field Description static StringSAX_LEXICAL_HANDLER_PROPERTY
-
Constructor Summary
Constructors Constructor Description DefaultXMLFilter()DefaultXMLFilter(XMLReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomment(char[] ch, int start, int length)voidendCDATA()voidendDTD()voidendEntity(String name)ObjectgetProperty(String name)voidparse(InputSource input)voidsetProperty(String name, Object value)voidstartCDATA()voidstartDTD(String name, String publicId, String systemId)voidstartEntity(String name)-
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
SAX_LEXICAL_HANDLER_PROPERTY
public static final String SAX_LEXICAL_HANDLER_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultXMLFilter
public DefaultXMLFilter()
-
DefaultXMLFilter
public DefaultXMLFilter(XMLReader reader)
-
-
Method Detail
-
parse
public void parse(InputSource input) throws SAXException, IOException
- Specified by:
parsein interfaceXMLReader- Overrides:
parsein classXMLFilterImpl- Throws:
SAXExceptionIOException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
setPropertyin interfaceXMLReader- Overrides:
setPropertyin classXMLFilterImpl- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
getProperty
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
getPropertyin interfaceXMLReader- Overrides:
getPropertyin classXMLFilterImpl- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
-