| 
 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.runtime.impl.XMLWriterNamespaceBase
org.jibx.runtime.impl.XMLWriterBase
org.jibx.runtime.impl.StreamWriterBase
org.jibx.runtime.impl.UTF8StreamWriter
public class UTF8StreamWriter
Handler for marshalling text document to a UTF-8 output stream.
| Field Summary | 
|---|
| Fields inherited from class org.jibx.runtime.impl.StreamWriterBase | 
|---|
| DEFAULT_BUFFER_SIZE | 
| Constructor Summary | |
|---|---|
| UTF8StreamWriter(java.lang.String[] uris)Constructor creating a buffer of the default size. | |
| UTF8StreamWriter(java.lang.String[] uris,
                 byte[] buffer)Constructor with supplied buffer. | |
| UTF8StreamWriter(UTF8StreamWriter base,
                 java.lang.String[] uris)Copy constructor. | |
| Method Summary | |
|---|---|
|  IXMLWriter | createChildWriter(java.lang.String[] uris)Create a child writer instance to be used for a separate binding. | 
|  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. | 
| Methods inherited from class org.jibx.runtime.impl.StreamWriterBase | 
|---|
| close, flush, getEncodingName, indent, indent, popExtensionNamespaces, pushExtensionNamespaces, reset, setIndentSpaces, setNamespaceUris, setOutput | 
| Methods inherited from class org.jibx.runtime.impl.XMLWriterBase | 
|---|
| addAttribute, closeEmptyTag, closeStartTag, endTag, startTagClosed, startTagNamespaces, startTagOpen, writeComment, writeDocType, writeEntityRef, writePI, writeXMLDecl | 
| Methods inherited from class org.jibx.runtime.impl.XMLWriterNamespaceBase | 
|---|
| getExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.jibx.runtime.IXMLWriter | 
|---|
| getExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces | 
| Constructor Detail | 
|---|
public UTF8StreamWriter(java.lang.String[] uris,
                        byte[] buffer)
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")buffer - output data bufferpublic UTF8StreamWriter(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 UTF8StreamWriter(UTF8StreamWriter base,
                        java.lang.String[] uris)
base - instance to be used as base for writeruris - ordered array of URIs for namespaces used in document
 (see UTF8StreamWriter(String[]))| Method Detail | 
|---|
public void writeTextContent(java.lang.String text)
                      throws java.io.IOException
text - content value text
java.io.IOException - on error writing to document
public void writeCData(java.lang.String text)
                throws java.io.IOException
text - content value text
java.io.IOException - on error writing to document
public IXMLWriter createChildWriter(java.lang.String[] uris)
                             throws java.io.IOException
uris - ordered array of URIs for namespaces used in document
 (see UTF8StreamWriter(String[]))
java.io.IOException| 
 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||