|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.html.HTMLStreamWriter
Writes events from a 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 Summary | |
HTMLStreamWriter(java.io.OutputStream out)
Will write all events onto out using the default Java
encoding. |
|
HTMLStreamWriter(java.io.OutputStream out,
java.lang.String encoding)
Will write all events onto out using the given Java encoding. |
|
HTMLStreamWriter(java.io.Writer out)
Will write all events onto out . |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTMLStreamWriter(java.io.OutputStream out)
out using the default Java
encoding.out - the stream to write on
public HTMLStreamWriter(java.io.OutputStream out,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
out using the given Java encoding.out - the stream to write onencoding - to usejava.io.UnsupportedEncodingException - Exception raised in failure
situationpublic HTMLStreamWriter(java.io.Writer out)
out . Encoding does not matter.out - the Writer to write on| Method Detail |
public 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 IHTMLContentHandlercom.sapportals.wcm.util.html.IHTMLContentHandlerch - array holding characters of eventstart - where in the array the characters beginlength - number of characters in eventHTMLException - to indicate error in event handling
public void endDocument()
throws HTMLException
IHTMLContentHandlerendDocument in interface IHTMLContentHandlercom.sapportals.wcm.util.html.IHTMLContentHandlerHTMLException - to indicate error in event handling
public void endElement(IHTMLElement element)
throws HTMLException
IHTMLContentHandlerIHTMLElement for further information.endElement in interface IHTMLContentHandlercom.sapportals.wcm.util.html.IHTMLContentHandlerelement - TBD: Description of the incoming method parameterHTMLException - to indicate error in event handling
public void startDocument()
throws HTMLException
IHTMLContentHandlerstartDocument in interface IHTMLContentHandlercom.sapportals.wcm.util.html.IHTMLContentHandlerHTMLException - to indicate error in event handling
public void startElement(IHTMLElementStart element)
throws HTMLException
IHTMLContentHandlerIHTMLElementStart for further information.startElement in interface IHTMLContentHandlercom.sapportals.wcm.util.html.IHTMLContentHandlerelement - TBD: Description of the incoming method parameterHTMLException - to indicate error in event handling
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||