|
||||||
| 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 | |
|---|---|
private byte[] |
m_converts
Conversion buffer for prefixes; |
| Fields inherited from class org.jibx.runtime.impl.StreamWriterBase |
|---|
AMP_ENTITY, GT_ENTITY, LT_CDATAEND, LT_CDATASTART, LT_ENTITY, m_buffer, m_extensionBytes, m_fillOffset, m_prefixBytes, QUOT_ENTITY |
| Fields inherited from class org.jibx.runtime.impl.XMLWriterBase |
|---|
m_contentSeen, m_textSeen |
| Fields inherited from class org.jibx.runtime.impl.XMLWriterNamespaceBase |
|---|
m_prefixes, m_uris |
| Constructor Summary | |
|---|---|
UTF8StreamWriter(java.lang.String[] uris)
Constructor. |
|
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. |
protected void |
defineNamespace(int index,
java.lang.String prefix)
Report that namespace has been defined. |
protected void |
writeAttributeText(java.lang.String text)
Write attribute text to output. |
void |
writeCData(java.lang.String text)
Write CDATA text to document. |
protected void |
writeMarkup(char chr)
Write markup character to output. |
protected void |
writeMarkup(java.lang.String text)
Write markup text to output. |
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, indent, indent, makeSpace, popExtensionNamespaces, pushExtensionNamespaces, reset, setIndentSpaces, setOutput, undefineNamespace, writeEntity, writePrefix |
| 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 |
|---|
decrementNesting, getExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, growArray, incrementNesting, openNamespaces, shrinkArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private byte[] m_converts
| Constructor Detail |
|---|
public 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 |
|---|
protected void writeMarkup(java.lang.String text)
throws java.io.IOException
writeMarkup in class XMLWriterBasetext - markup text to be written
java.io.IOException - if error writing to document
protected void writeMarkup(char chr)
throws java.io.IOException
writeMarkup in class XMLWriterBasechr - markup character to be written
java.io.IOException - if error writing to document
protected void defineNamespace(int index,
java.lang.String prefix)
defineNamespace in class XMLWriterNamespaceBaseindex - namespace URI index numberprefix - prefix used for namespace
protected void writeAttributeText(java.lang.String text)
throws java.io.IOException
writeAttributeText in class XMLWriterBasetext - attribute value text to be written
java.io.IOException - if error writing to document
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 documentpublic IXMLWriter createChildWriter(java.lang.String[] uris)
createChildWriter in class XMLWriterBaseuris - ordered array of URIs for namespaces used in document
(see UTF8StreamWriter(String[]))
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||