public class XMLDocument extends XMLElement
XMLElementwriter| 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, textpublic 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 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 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 nullsystem - 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
XMLElementclose in class XMLElementIOException - in case of problems with the writerCopyright © 2024. All rights reserved.