|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.wbi.markuplanguage.html.HeadProcessor
Class to process HTML documents, adding specified content to the top of the HEAD section and/or the top of the BODY section.
| Constructor Summary | |
HeadProcessor(java.io.InputStream is,
java.io.OutputStream os)
Creates a new HeadProcessor instance. |
|
| Method Summary | |
protected void |
doBodyInsertion()
Insert the body string to the top of the BODY section. |
protected void |
doHeadInsertion()
Insert the head string to the top of the HEAD section. |
int |
getAdditionalLength()
Get the additional number of bytes that were added to the HTML source. |
java.lang.String |
getTitle()
Access the title of the document. |
java.lang.String |
getTopOfBodyInsertion()
Get the string that should be inserted at top of BODY section. |
java.lang.String |
getTopOfHeadInsertion()
Get the string that should be inserted at top of HEAD section. |
void |
process()
Process the HTML document, adding the specified content to the top of the HEAD section and the top of the BODY section. |
void |
setTopOfBodyInsertion(java.lang.String s)
Indicate that a string should be inserted at top of BODY section. |
void |
setTopOfHeadInsertion(java.lang.String s)
Indicate that a string should be inserted at top of HEAD section. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HeadProcessor(java.io.InputStream is,
java.io.OutputStream os)
is - InputStream holding the HTML source to process.os - OuputStream for the modified HTML source from the input stream.
(This is an in-out parameter.)| Method Detail |
public int getAdditionalLength()
public java.lang.String getTitle()
public void setTopOfBodyInsertion(java.lang.String s)
String - to insert at top of BODY.public java.lang.String getTopOfBodyInsertion()
public void setTopOfHeadInsertion(java.lang.String s)
String - to insert at top of HEAD.public java.lang.String getTopOfHeadInsertion()
public void process()
throws java.io.IOException
java.io.IOException - when reading from the input stream or writing to the output stream
caused an exception.
protected void doHeadInsertion()
throws java.io.IOException
protected void doBodyInsertion()
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||