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 String
SAX_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 void
comment(char[] ch, int start, int length)
void
endCDATA()
void
endDTD()
void
endEntity(String name)
Object
getProperty(String name)
void
parse(InputSource input)
void
setProperty(String name, Object value)
void
startCDATA()
void
startDTD(String name, String publicId, String systemId)
void
startEntity(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:
parse
in interfaceXMLReader
- Overrides:
parse
in classXMLFilterImpl
- Throws:
SAXException
IOException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
setProperty
in interfaceXMLReader
- Overrides:
setProperty
in classXMLFilterImpl
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
getProperty
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
getProperty
in interfaceXMLReader
- Overrides:
getProperty
in classXMLFilterImpl
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
-