| Constructor and Description |
|---|
HTMLPage2Content(HTMLPage page) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(java.lang.String name,
java.lang.String value)
Manually add a property to page.
|
java.lang.String |
getProperty(java.lang.String name)
Get a property embedded into the
Page as a String. |
java.lang.String[] |
getPropertyKeys()
Get all available property keys for the
Page. |
java.lang.String |
getTitle()
Get the Title of the document
|
void |
writeBody(java.io.Writer out)
Write the contents of the
<body> tag. |
void |
writeHead(java.io.Writer out)
Write the contents of the
<head> tag. |
void |
writeOriginal(java.io.Writer out)
Write out the original unprocessed content.
|
private final HTMLPage page
public HTMLPage2Content(HTMLPage page)
public void writeOriginal(java.io.Writer out)
throws java.io.IOException
ContentwriteOriginal in interface Contentjava.io.IOExceptionpublic void writeBody(java.io.Writer out)
throws java.io.IOException
Content<body> tag.public void writeHead(java.io.Writer out)
throws java.io.IOException
Content<head> tag.public java.lang.String getTitle()
Contentpublic java.lang.String getProperty(java.lang.String name)
ContentPage as a String.getProperty in interface Contentname - Name of propertypublic java.lang.String[] getPropertyKeys()
ContentPage.getPropertyKeys in interface Contentpublic void addProperty(java.lang.String name,
java.lang.String value)
ContentaddProperty in interface Content