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
Content
writeOriginal
in interface Content
IOException
public int originalLength()
Content
originalLength
in interface Content
public void writeBody(Writer out) throws IOException
Content
<body>
tag.writeBody
in interface Content
IOException
public void writeHead(Writer out) throws IOException
Content
<head>
tag.writeHead
in interface Content
IOException
public String getTitle()
Content
public String getProperty(String name)
Content
Page
as a String
.getProperty
in interface Content
name
- Name of propertypublic String[] getPropertyKeys()
Content
Page
.getPropertyKeys
in interface Content
public void addProperty(String name, String value)
Content
addProperty
in interface Content