public class HTMLDocument extends Document
Constructor and Description |
---|
HTMLDocument() |
HTMLDocument(String name)
Constructs a HTML document with a name.
|
Modifier and Type | Method and Description |
---|---|
void |
breakLines(boolean value)
It determines If the HTML document generated will have break lines.
|
void |
generateBodyTag(boolean value)
It determines If the HTML document generated will have the tag.
|
void |
generateFile()
Begins the generate.
|
void |
generateHeadTag(boolean value)
It determines If the HTML document generated will have the tag.
|
void |
generateHtmlTag(boolean value)
It determines If the HTML document generated will have the tag.
|
Tag |
getBody()
Returns the document's body.
|
Tag |
getHead()
Returns the document's head.
|
void |
setBody(Tag body)
Sets the document's body.
|
void |
setHead(Tag head)
Sets the document's head.
|
static void |
writeHTML(String fileName,
String filePath,
Tag tag) |
public HTMLDocument()
public HTMLDocument(String name)
name
- The document's name.public void breakLines(boolean value)
value
- public void generateHtmlTag(boolean value)
value
- public void generateHeadTag(boolean value)
value
- public void generateBodyTag(boolean value)
value
- public void setHead(Tag head)
head
- The Head object.public void setBody(Tag body)
body
- The Body object.public Tag getHead()
public Tag getBody()
public void generateFile() throws IOException
IOException
Copyright © 2015. All rights reserved.