public class GenericXMLWriter extends XMLWriterBase
| Constructor and Description |
|---|
GenericXMLWriter(GenericXMLWriter base,
java.lang.String[] uris)
Copy constructor.
|
GenericXMLWriter(java.lang.String[] uris)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close document output.
|
IXMLWriter |
createChildWriter(java.lang.String[] uris)
Create a child writer instance to be used for a separate binding.
|
void |
flush()
Flush document output.
|
void |
indent()
Request output indent.
|
void |
indent(int bias)
Request output indent.
|
void |
setIndentSpaces(int count,
java.lang.String newline,
char indent)
Set nesting indentation.
|
void |
setOutput(java.io.Writer outw,
ICharacterEscaper escaper)
Set output writer and escaper.
|
void |
writeCData(java.lang.String text)
Write CDATA text to document.
|
void |
writeTextContent(java.lang.String text)
Write ordinary character data text content to document.
|
addAttribute, closeEmptyTag, closeStartTag, endTag, init, reset, startTagClosed, startTagNamespaces, startTagOpen, writeComment, writeDocType, writeEntityRef, writePI, writeXMLDeclgetExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces, popExtensionNamespaces, popTranslationTable, pushExtensionNamespaces, pushTranslationTable, translateNamespaceequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces, popExtensionNamespaces, popTranslationTable, pushExtensionNamespaces, pushTranslationTablepublic GenericXMLWriter(java.lang.String[] uris)
uris - ordered array of URIs for namespaces used in document (must
be constant; the value in position 0 must always be the empty string "",
and the value in position 1 must always be the XML namespace
"http://www.w3.org/XML/1998/namespace")public GenericXMLWriter(GenericXMLWriter base, java.lang.String[] uris)
base - instance to be used as base for writeruris - ordered array of URIs for namespaces used in document
(see GenericXMLWriter(String[]))public void setOutput(java.io.Writer outw,
ICharacterEscaper escaper)
outw - writer for document data outputescaper - character escaper for chosen encodingpublic void setIndentSpaces(int count,
java.lang.String newline,
char indent)
count - number of character to indent per level, or disable
indentation if negative (zero means new line only)newline - sequence of characters used for a line ending
(null means use the single character '\n')indent - whitespace character used for indentationpublic void writeTextContent(java.lang.String text)
throws java.io.IOException
text - content value textjava.io.IOException - on error writing to documentpublic void writeCData(java.lang.String text)
throws java.io.IOException
text - content value textjava.io.IOException - on error writing to documentpublic void indent(int bias)
throws java.io.IOException
bias - indent depth difference (positive or negative) from current
element nesting depthjava.io.IOException - on error writing to documentpublic void indent()
throws java.io.IOException
java.io.IOException - on error writing to documentpublic void flush()
throws java.io.IOException
flush in interface IXMLWriterflush in class XMLWriterBasejava.io.IOException - on error writing to documentpublic void close()
throws java.io.IOException
close in interface IXMLWriterclose in class XMLWriterBasejava.io.IOException - on error writing to documentpublic IXMLWriter createChildWriter(java.lang.String[] uris)
uris - ordered array of URIs for namespaces used in document
(see GenericXMLWriter(String[]))