public class SimpleHTML extends java.lang.Object implements HTMLDocument
| Constructor and Description |
|---|
SimpleHTML(java.lang.String title)
SimpleHTML. |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeading(java.lang.String text)
Adds heading to this HTML document.
|
void |
addHorizontalRule()
Adds horizontal rule to this HTML document.
|
void |
addParagraph(java.lang.String text)
Adds paragraph to this HTML document.
|
byte[] |
getData()
Returns the byte array representation of this HTML document.
|
java.lang.String |
toString() |
public SimpleHTML(java.lang.String title)
SimpleHTML.title - title of this HTML document.public void addHeading(java.lang.String text)
text - the content.public void addParagraph(java.lang.String text)
text - the content.public void addHorizontalRule()
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getData()
HTMLDocumentgetData in interface HTMLDocument