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
Content
writeOriginal
in interface Content
java.io.IOException
public 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()
Content
public java.lang.String getProperty(java.lang.String name)
Content
Page
as a String
.getProperty
in interface Content
name
- Name of propertypublic java.lang.String[] getPropertyKeys()
Content
Page
.getPropertyKeys
in interface Content
public void addProperty(java.lang.String name, java.lang.String value)
Content
addProperty
in interface Content