public class HTMLStreamWriter extends Object implements IHTMLContentHandler
IHTMLReader onto a stream.
A HTMLStreamWriter can be installed as a IHTMLContentHandler in a
reader and will write all events generated by the reader onto the given
stream.
Copyright (c) SAP AG 2001-2003
| Constructor and Description |
|---|
HTMLStreamWriter(OutputStream out)
Will write all events onto
out using the default Java
encoding. |
HTMLStreamWriter(OutputStream out,
String encoding)
Will write all events onto
out using the given Java encoding. |
HTMLStreamWriter(Writer out)
Will write all events onto
out . |
| 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.
|
public HTMLStreamWriter(OutputStream out)
out using the default Java
encoding.out - the stream to write onpublic HTMLStreamWriter(OutputStream out, String encoding) throws UnsupportedEncodingException
out using the given Java encoding.out - the stream to write onencoding - to useUnsupportedEncodingException - Exception raised in failure
situationpublic HTMLStreamWriter(Writer out)
out . Encoding does not matter.out - the Writer to write onpublic void characters(char[] ch,
int start,
int length)
throws HTMLException
IHTMLContentHandlerch 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.
characters in interface IHTMLContentHandlerch - array holding characters of eventstart - where in the array the characters beginlength - number of characters in eventHTMLException - to indicate error in event handlingpublic void endDocument()
throws HTMLException
IHTMLContentHandlerendDocument in interface IHTMLContentHandlerHTMLException - to indicate error in event handlingpublic void endElement(IHTMLElement element) throws HTMLException
IHTMLContentHandlerIHTMLElement for further information.endElement in interface IHTMLContentHandlerelement - TBD: Description of the incoming method parameterHTMLException - to indicate error in event handlingpublic void startDocument()
throws HTMLException
IHTMLContentHandlerstartDocument in interface IHTMLContentHandlerHTMLException - to indicate error in event handlingpublic void startElement(IHTMLElementStart element) throws HTMLException
IHTMLContentHandlerIHTMLElementStart for further information.startElement in interface IHTMLContentHandlerelement - 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