org.xwiki.rendering.wikimodel.xhtml.filter
Class DefaultXMLFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by 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 org.xml.sax.helpers.XMLFilterImpl
implements LexicalHandler

Since:
4.0M1
Version:
$Id: b835e5e8b3f65f2605ae506c182953847d5466e4 $

Field Summary
static String SAX_LEXICAL_HANDLER_PROPERTY
           
 
Constructor Summary
DefaultXMLFilter()
           
DefaultXMLFilter(XMLReader reader)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface XMLReader
Overrides:
parse in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException
IOException

setProperty

public void setProperty(String name,
                        Object value)
                 throws SAXNotRecognizedException,
                        SAXNotSupportedException
Specified by:
setProperty in interface XMLReader
Overrides:
setProperty in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXNotRecognizedException
SAXNotSupportedException

getProperty

public Object getProperty(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Specified by:
getProperty in interface XMLReader
Overrides:
getProperty in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXNotRecognizedException
SAXNotSupportedException

comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws SAXException
Specified by:
comment in interface LexicalHandler
Throws:
SAXException

endCDATA

public void endCDATA()
              throws SAXException
Specified by:
endCDATA in interface LexicalHandler
Throws:
SAXException

endDTD

public void endDTD()
            throws SAXException
Specified by:
endDTD in interface LexicalHandler
Throws:
SAXException

endEntity

public void endEntity(String name)
               throws SAXException
Specified by:
endEntity in interface LexicalHandler
Throws:
SAXException

startCDATA

public void startCDATA()
                throws SAXException
Specified by:
startCDATA in interface LexicalHandler
Throws:
SAXException

startDTD

public void startDTD(String name,
                     String publicId,
                     String systemId)
              throws SAXException
Specified by:
startDTD in interface LexicalHandler
Throws:
SAXException

startEntity

public void startEntity(String name)
                 throws SAXException
Specified by:
startEntity in interface LexicalHandler
Throws:
SAXException


Copyright © 2004–2014 XWiki. All rights reserved.