public class TokenizedHTMLPage extends AbstractHTMLPage implements PageBuilder
HTMLPageParser,
TagTokenizer| Modifier and Type | Field and Description |
|---|---|
private CharArray |
body |
private CharArray |
head |
pageData| Constructor and Description |
|---|
TokenizedHTMLPage(char[] original,
CharArray body,
CharArray head) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Convenience method to return the contents of the
<body> tag. |
String |
getHead()
Convenience method to return the contents of the
<head> tag as a String. |
String |
getPage()
Convenience method to return the contents of the
Page in its original format. |
void |
writeBody(Writer out)
Write data of html
<body> tag. |
void |
writeHead(Writer out)
Write data of html
<head> tag. |
isFrameSet, setFrameSetaddProperty, getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequest, writePageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyaddProperty, getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writePagepublic void writeHead(Writer out) throws IOException
AbstractHTMLPage<head> tag.
Must be implemented. Data written should not actually contain the head tags, but all the data in between.
writeHead in interface HTMLPagewriteHead in class AbstractHTMLPageIOExceptionpublic void writeBody(Writer out) throws IOException
AbstractPage<body> tag.
Must be implemented. Data written should not actually contain the body tags, but all the data in between.
writeBody in interface PagewriteBody in class AbstractPageIOExceptionpublic String getHead()
HTMLPage<head> tag as a String.getHead in interface HTMLPageHTMLPage.writeHead(java.io.Writer)public String getBody()
Page<body> tag.getBody in interface PagegetBody in class AbstractPagePage.writeBody(java.io.Writer)public String getPage()
PagePage in its original format.getPage in interface PagegetPage in class AbstractPagePage.writePage(java.io.Writer)