com.sapportals.wcm.util.html
Class HTMLScriptRemover
java.lang.Object
com.sapportals.wcm.util.html.HTMLFilterImpl
com.sapportals.wcm.util.html.HTMLScriptRemover
- All Implemented Interfaces:
- IHTMLContentHandler, IHTMLFilter, IHTMLReader, ITextContentHandler
public class HTMLScriptRemover
- extends HTMLFilterImpl
Removes script content and noscript tags.
Copyright (c) SAP AG 2001-2002
| Methods inherited from class com.sapportals.wcm.util.html.HTMLFilterImpl |
discard, endDocument, endTextDocument, getContentHandler, getEncoding, getParent, getRawContentHandler, parse, parseNextEvent, setContentHandler, setParent, setRawContentHandler, setSource, setSource, setSource, startDocument, startTextDocument, textCharacters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLScriptRemover
public HTMLScriptRemover()
HTMLScriptRemover
public HTMLScriptRemover(IHTMLReader reader)
startElement
public void startElement(IHTMLElementStart element)
throws HTMLException
- Description copied from interface:
IHTMLContentHandler
- Notification that a tag was encountered. The element paramter is only valid
for the duration of the call. The content of element are undefined when the
method returns. See
IHTMLElementStart for further information.
- Specified by:
startElement in interface IHTMLContentHandler- Overrides:
startElement in class HTMLFilterImpl
- Parameters:
element - TBD: Description of the incoming method parameter
- Throws:
HTMLException - to indicate error in event handling
endElement
public void endElement(IHTMLElement element)
throws HTMLException
- Description copied from interface:
IHTMLContentHandler
- Notification that an end tag was encountered (e.g. starting with '</').
The element paramter is only valid for the duration of the call. The
content of element are undefined when the method returns. See
IHTMLElement for further information.
- Specified by:
endElement in interface IHTMLContentHandler- Overrides:
endElement in class HTMLFilterImpl
- Parameters:
element - TBD: Description of the incoming method parameter
- Throws:
HTMLException - to indicate error in event handling
characters
public void characters(char[] ch,
int start,
int length)
throws HTMLException
- Description copied from interface:
IHTMLContentHandler
- Notification of a character event. The characters of the event are found in
ch at offset start . There are length
number of characters.
The content of the buffer before start or after start +
length is undefined. Modification of the character array is strictly
forbidden. The content of the array is undefined after this method returns.
- Specified by:
characters in interface IHTMLContentHandler- Overrides:
characters in class HTMLFilterImpl
- Parameters:
ch - array holding characters of eventstart - where in the array the characters beginlength - number of characters in event
- Throws:
HTMLException - to indicate error in event handling
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2014 SAP AG Complete Copyright Notice