com.sapportals.portal.pb.contentservice
Interface IHTMLProcessor
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- TestHTMLProcessor
- public interface IHTMLProcessor
- extends java.io.Serializable
This Interface is used to add HTML processing ability to the clients using the contnet fetching service.
It is stored on the IPackageInformation, so it must be serializable.
|
Method Summary |
boolean |
processHTML(java.io.BufferedReader inputHTML,
java.io.BufferedWriter outputHTML,
java.lang.String HTMLEncoding)
Method processHTML. |
processHTML
public boolean processHTML(java.io.BufferedReader inputHTML,
java.io.BufferedWriter outputHTML,
java.lang.String HTMLEncoding)
- Method processHTML. This method implementation is used to process HTML (or any other text content) recieved from a site,
and to give the client using the content fetching service the option to do a transformation of the HTML.
The client can decide in runtime if any changes need to be made and notify the service on it.
No special char encoding should be done. The reader and writer already handle the encoding.
- Parameters:
inputHTML - a reader of the HTML to processoutputHTML - a writer to which the processed HTML is written. Must not be re-allocated. Must be flushed when finished usingHTMLEncoding - A string indicating the encoding of the HTML- Returns:
- boolean indicating to the service whether the HTML was processed or not.