org.xwiki.portlet.view
Class HTMLInlineCodeXMLFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by org.xwiki.portlet.view.HTMLInlineCodeXMLFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class HTMLInlineCodeXMLFilter
extends org.xml.sax.helpers.XMLFilterImpl

An XML filter that transforms the code (e.g. CSS, JavaScript) in-lined in the HTML document.

Version:
$Id: b52392655dacd7c7997d6d187c43b0f0d1a778cd $

Constructor Summary
HTMLInlineCodeXMLFilter(URLRewriter urlRewriter, String namespace)
          Creates a new HTML XML filter that rewrites the CSS and JavaScript code in-lined in the HTML document.
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String localName, String qName)
           
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLInlineCodeXMLFilter

public HTMLInlineCodeXMLFilter(URLRewriter urlRewriter,
                               String namespace)
Creates a new HTML XML filter that rewrites the CSS and JavaScript code in-lined in the HTML document.

Parameters:
urlRewriter - the object used to rewrite URLs
namespace - the string used to name-space HTML element identifiers in the context of the portal page
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException


Copyright © 2004-2013 XWiki. All Rights Reserved.