public class HTMLDocument extends XMLDocument
XMLDocument
that declares its content type to be XHTML 1.0 Strict and
produces HTMLElement
s as children.writer
Constructor | Description |
---|---|
HTMLDocument(java.io.OutputStream output,
java.lang.String encoding) |
Creates a new HTML document based on the given stream.
|
HTMLDocument(java.io.Writer writer,
java.lang.String encoding) |
Creates a new HTML document based on the given writer.
|
Modifier and Type | Method | Description |
---|---|---|
HTMLElement |
body() |
Creates a 'body' element.
|
HTMLElement |
element(java.lang.String name) |
Creates a new child element for this element,
|
HTMLElement |
head() |
Creates a 'head' element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
addChildElement, attr, attr, attr, beginOpenTag, text
public HTMLDocument(java.io.Writer writer, java.lang.String encoding) throws java.io.IOException
writer
- writer for content outputencoding
- document encodingjava.io.IOException
- in case of problems with the writerpublic HTMLDocument(java.io.OutputStream output, java.lang.String encoding) throws java.io.IOException
output
- stream for content outputencoding
- document encodingjava.io.IOException
- in case of problems with the streampublic HTMLElement element(java.lang.String name) throws java.io.IOException
XMLElement
element
in class XMLElement
name
- name of the child elementjava.io.IOException
- in case of problems with the writerpublic HTMLElement head() throws java.io.IOException
java.io.IOException
- in case of problems with the writerpublic HTMLElement body() throws java.io.IOException
java.io.IOException
- in case of problems with the writerCopyright © 2018. All rights reserved.