public class HTMLDocument extends XMLDocument
XMLDocument that declares its content type to be XHTML 1.0 Strict and
produces HTMLElements 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, waitcloseaddChildElement, attr, attr, attr, beginOpenTag, textpublic 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
XMLElementelement in class XMLElementname - 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.