com.sapportals.wcm.util.html

Interface ITextContentHandler

All Known Implementing Classes:
HTMLFilterImpl, HTMLScriptRemover

public interface ITextContentHandler

ITextContentHandler receives events from a IHTMLReader about raw text as it is read from a HTML document.

Contrary to IHTMLContentHandler the text handler receives the raw, unstructured character data. Copyright (c) SAP AG 2005


Method Summary
 void endTextDocument()
          Notification that the document is finished.
 void startTextDocument()
          Notification that the document is about to start.
 void textCharacters(char[] ch, int start, int length)
          Notification of a character event.
 

Method Detail

textCharacters

void textCharacters(char[] ch,
                    int start,
                    int length)
                    throws IOException
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.

Parameters:
ch - array holding characters of event
start - where in the array the characters begin
length - number of characters in event
Throws:
IOException - to indicate error in event handling

endTextDocument

void endTextDocument()
                     throws IOException
Notification that the document is finished.

Throws:
IOException - to indicate error in event handling

startTextDocument

void startTextDocument()
                       throws IOException
Notification that the document is about to start.

Throws:
IOException - to indicate error in event handling
Access Rights

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