HTMLDocument
public class XMLDocument extends XMLElement
XMLElement
writer
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, wait
addChildElement, attr, attr, attr, beginOpenTag, element, text
public 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 null
system
- 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 null
system
- 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
XMLElement
close
in class XMLElement
java.io.IOException
- in case of problems with the writerCopyright © 2018. All rights reserved.