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