public class GenericXMLWriter extends XMLWriterBase
m_prefixes, m_uris| Constructor and Description |
|---|
GenericXMLWriter(GenericXMLWriter base,
String[] uris)
Copy constructor.
|
GenericXMLWriter(String[] uris)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close document output.
|
IXMLWriter |
createChildWriter(String[] uris)
Create a child writer instance to be used for a separate binding.
|
protected void |
defineNamespace(int index,
String prefix)
Report that namespace has been defined.
|
void |
flush()
Flush document output.
|
void |
indent()
Request output indent.
|
void |
indent(int bias)
Request output indent.
|
void |
setIndentSpaces(int count,
String newline,
char indent)
Set nesting indentation.
|
void |
setOutput(Writer outw,
ICharacterEscaper escaper)
Set output writer and escaper.
|
protected void |
undefineNamespace(int index)
Report that namespace has been undefined.
|
protected void |
writeAttributeText(String text)
Write attribute text to output.
|
void |
writeCData(String text)
Write CDATA text to document.
|
protected void |
writeMarkup(char chr)
Write markup character to output.
|
protected void |
writeMarkup(String text)
Write markup text to output.
|
protected void |
writePrefix(int index)
Write namespace prefix to output.
|
void |
writeTextContent(String text)
Write ordinary character data text content to document.
|
addAttribute, closeEmptyTag, closeStartTag, endTag, flagContent, flagTextContent, init, reset, startTagClosed, startTagNamespaces, startTagOpen, writeComment, writeDocType, writeEntityRef, writePI, writeXMLDecldecrementNesting, getExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, growArray, incrementNesting, internalNamespacePrefix, internalNamespaceUri, internalSetUris, openNamespaces, popExtensionNamespaces, popTranslationTable, pushExtensionNamespaces, pushTranslationTable, shrinkArray, translateNamespaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces, popExtensionNamespaces, popTranslationTable, pushExtensionNamespaces, pushTranslationTablepublic GenericXMLWriter(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, 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(Writer outw, ICharacterEscaper escaper)
outw - writer for document data outputescaper - character escaper for chosen encodingpublic void setIndentSpaces(int count,
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 indentationprotected void writeMarkup(String text) throws IOException
writeMarkup in class XMLWriterBasetext - markup text to be writtenIOException - if error writing to documentprotected void writeMarkup(char chr)
throws IOException
writeMarkup in class XMLWriterBasechr - markup character to be writtenIOException - if error writing to documentprotected void defineNamespace(int index,
String prefix)
defineNamespace in class XMLWriterNamespaceBaseindex - post-translation namespace URI index numberprefix - prefix used for namespaceprotected void undefineNamespace(int index)
undefineNamespace in class XMLWriterNamespaceBaseindex - post-translation namespace URI index numberprotected void writePrefix(int index)
throws IOException
writePrefix in class XMLWriterBaseindex - namespace URI index numberIOException - if error writing to documentprotected void writeAttributeText(String text) throws IOException
writeAttributeText in class XMLWriterBasetext - attribute value text to be writtenIOException - if error writing to documentpublic void writeTextContent(String text) throws IOException
text - content value textIOException - on error writing to documentpublic void writeCData(String text) throws IOException
text - content value textIOException - on error writing to documentpublic void indent(int bias)
throws IOException
indent in class XMLWriterBasebias - indent depth difference (positive or negative) from current
element nesting depthIOException - on error writing to documentpublic void indent()
throws IOException
IOException - on error writing to documentpublic void flush()
throws IOException
flush in interface IXMLWriterflush in class XMLWriterBaseIOException - on error writing to documentpublic void close()
throws IOException
close in interface IXMLWriterclose in class XMLWriterBaseIOException - on error writing to documentpublic IXMLWriter createChildWriter(String[] uris)
uris - ordered array of URIs for namespaces used in document
(see GenericXMLWriter(String[]))Copyright © 2005-2014 jibx.org. All Rights Reserved.