public abstract class StreamWriterBase extends XMLWriterBase
| Constructor and Description |
|---|
StreamWriterBase(StreamWriterBase base,
java.lang.String[] uris)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close document output.
|
void |
flush()
Flush document output.
|
java.lang.String |
getEncodingName()
Get the name of the character encoding used by this writer.
|
void |
indent()
Request output indent.
|
void |
indent(int bias)
Request output indent.
|
void |
popExtensionNamespaces()
Remove extension namespace URIs.
|
void |
pushExtensionNamespaces(java.lang.String[] uris)
Append extension namespace URIs to those in mapping.
|
void |
setBuffer(IOutByteBuffer buff)
Set the byte buffer.
|
void |
setIndentSpaces(int count,
java.lang.String newline,
char indent)
Set nesting indentation.
|
void |
setNamespaceUris(java.lang.String[] uris)
Set namespace URIs.
|
addAttribute, closeEmptyTag, closeStartTag, endTag, init, reset, startTagClosed, startTagNamespaces, startTagOpen, writeComment, writeDocType, writeEntityRef, writePI, writeXMLDeclgetExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces, popTranslationTable, pushTranslationTable, translateNamespaceequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateChildWritergetExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces, popTranslationTable, pushTranslationTable, writeCData, writeTextContentpublic StreamWriterBase(StreamWriterBase base, java.lang.String[] uris)
base - instance to be used as base for writeruris - ordered array of URIs for namespaces used in document
(see StreamWriterBase(String, String[]))public void setBuffer(IOutByteBuffer buff)
buff - public java.lang.String getEncodingName()
public void setNamespaceUris(java.lang.String[] uris)
throws java.io.IOException
uris - ordered array of URIs for namespaces used in documentjava.io.IOExceptionpublic 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 pushExtensionNamespaces(java.lang.String[] uris)
pushExtensionNamespaces in interface IXMLWriterpushExtensionNamespaces in class XMLWriterNamespaceBaseuris - namespace URIs to extend those in mappingpublic void popExtensionNamespaces()
pushExtensionNamespaces(java.lang.String[]).popExtensionNamespaces in interface IXMLWriterpopExtensionNamespaces in class XMLWriterNamespaceBasepublic 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 document