public interface IHTMLContentHandler
IHTMLReader.
For each event the
Copyright (c) SAP AG 2001-2002IHTMLReader calls the
corresponding method in the content handler. This maps as follows:
Document Part
Event
Notes
(start of input)
startDocument
This event precedes any other event.
(end of input)
endDocument
This is the last event for a document.
<tag...>, <tag.../>
startElement
This event is generated for all tags which are not an end tag (e.g.
start with '</'. Note that for empty tags (e.g. ending with '/>')
startElement is the only event generated. There will never be an
endElement event.
</tag>
endElement
A tag starting with '</' will generate this event.
otherwise
characters
The following parts of a HTML document will generate this event:
characters between tags, DOCTYPE declarations, processing instructions,
CDATA sections, any characters between start/end of
script
or pre tags.
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Notification of a character event.
|
void |
endDocument()
Notification that the document is finished.
|
void |
endElement(IHTMLElement element)
Notification that an end tag was encountered (e.g. starting with '</').
|
void |
startDocument()
Notification that the document is about to start.
|
void |
startElement(IHTMLElementStart element)
Notification that a tag was encountered.
|
void characters(char[] ch,
int start,
int length)
throws HTMLException
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.
ch - array holding characters of eventstart - where in the array the characters beginlength - number of characters in eventHTMLException - to indicate error in event handlingvoid endDocument()
throws HTMLException
HTMLException - to indicate error in event handlingvoid endElement(IHTMLElement element) throws HTMLException
IHTMLElement for further information.element - TBD: Description of the incoming method parameterHTMLException - to indicate error in event handlingvoid startDocument()
throws HTMLException
HTMLException - to indicate error in event handlingvoid startElement(IHTMLElementStart element) throws HTMLException
IHTMLElementStart for further information.element - TBD: Description of the incoming method parameterHTMLException - to indicate error in event handling| Access Rights |
|---|
| 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 2021 SAP SE Complete Copyright Notice