HTMLDocumentpublic class XMLDocument extends XMLElement
XMLElementwriter| Constructor | Description |
|---|---|
XMLDocument(java.lang.String rootnode,
java.lang.String pubId,
java.lang.String system,
java.lang.String encoding,
boolean standalone,
java.io.OutputStream output) |
Writes a new document to the given binary stream.
|
XMLDocument(java.lang.String rootnode,
java.lang.String pubId,
java.lang.String system,
java.lang.String encoding,
boolean standalone,
java.io.Writer writer) |
Writes a new document to the given writer.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes this element if it has not been closed before.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChildElement, attr, attr, attr, beginOpenTag, element, textpublic XMLDocument(java.lang.String rootnode,
java.lang.String pubId,
java.lang.String system,
java.lang.String encoding,
boolean standalone,
java.io.Writer writer)
throws java.io.IOException
rootnode - name of the root nodepubId - optional doctype identifier or nullsystem - system reference, required if doctype is givenencoding - encoding that will be specified in the headerstandalone - true if this is a standalone documentwriter - writer for content outputjava.io.IOException - in case of problems with the writerpublic XMLDocument(java.lang.String rootnode,
java.lang.String pubId,
java.lang.String system,
java.lang.String encoding,
boolean standalone,
java.io.OutputStream output)
throws java.io.IOException
rootnode - name of the root nodepubId - optional doctype identifier or nullsystem - system reference, required if doctype is givenencoding - encoding of the XML documentstandalone - true if this is a standalone documentoutput - output for content outputjava.io.IOException - in case of problems with the writerpublic void close()
throws java.io.IOException
XMLElementclose in class XMLElementjava.io.IOException - in case of problems with the writerCopyright © 2018. All rights reserved.