public class XMLDocument extends XMLElement
XMLElement
writer
Constructor and Description |
---|
XMLDocument(String rootnode,
String pubId,
String system,
String encoding,
boolean standalone,
OutputStream output)
Writes a new document to the given binary stream.
|
XMLDocument(String rootnode,
String pubId,
String system,
String encoding,
boolean standalone,
Writer writer)
Writes a new document to the given writer.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this element if it has not been closed before.
|
addChildElement, attr, attr, attr, beginOpenTag, element, text
public XMLDocument(String rootnode, String pubId, String system, String encoding, boolean standalone, Writer writer) throws 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 outputIOException
- in case of problems with the writerpublic XMLDocument(String rootnode, String pubId, String system, String encoding, boolean standalone, OutputStream output) throws 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 outputIOException
- in case of problems with the writerpublic void close() throws IOException
XMLElement
close
in class XMLElement
IOException
- in case of problems with the writerCopyright © 2018. All rights reserved.