|
||||||||||
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 |
---|
m_ampEntityBytes, m_buffer, m_cdataEndBytes, m_cdataStartBytes, m_extensionBytes, m_fillOffset, m_gtEntityBytes, m_ltEntityBytes, m_prefixBytes, m_quotEntityBytes |
Fields inherited from class org.jibx.runtime.impl.XMLWriterNamespaceBase |
---|
m_prefixes, m_uris |
Constructor Summary | |
---|---|
UTF8StreamWriter(String[] uris)
Constructor with supplied buffer. |
|
UTF8StreamWriter(UTF8StreamWriter base,
String[] uris)
Copy constructor. |
Method Summary | |
---|---|
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. |
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. |
void |
writeTextContent(String text)
Write ordinary character data text content to document. |
Methods inherited from class org.jibx.runtime.impl.StreamWriterBase |
---|
close, flush, getEncodingName, indent, indent, makeSpace, popExtensionNamespaces, pushExtensionNamespaces, setBuffer, setIndentSpaces, setNamespaceUris, undefineNamespace, writeEntity, writePrefix |
Methods inherited from class org.jibx.runtime.impl.XMLWriterBase |
---|
addAttribute, closeEmptyTag, closeStartTag, endTag, flagContent, flagTextContent, init, reset, 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, internalNamespacePrefix, internalNamespaceUri, internalSetUris, openNamespaces, popTranslationTable, pushTranslationTable, shrinkArray, translateNamespace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jibx.runtime.IXMLWriter |
---|
getExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, openNamespaces, popTranslationTable, pushTranslationTable |
Constructor Detail |
---|
public UTF8StreamWriter(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, 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(String text) throws IOException
writeMarkup
in class XMLWriterBase
text
- markup text to be written
IOException
- if error writing to documentprotected void writeMarkup(char chr) throws IOException
writeMarkup
in class XMLWriterBase
chr
- markup character to be written
IOException
- if error writing to documentprotected void defineNamespace(int index, String prefix)
defineNamespace
in class XMLWriterNamespaceBase
index
- post-translation namespace URI index numberprefix
- prefix used for namespaceprotected void writeAttributeText(String text) throws IOException
writeAttributeText
in class XMLWriterBase
text
- attribute value text to be written
IOException
- if error writing to documentpublic void writeTextContent(String text) throws IOException
text
- content value text
IOException
- on error writing to documentpublic void writeCData(String text) throws IOException
text
- content value text
IOException
- on error writing to documentpublic IXMLWriter createChildWriter(String[] uris) throws IOException
uris
- ordered array of URIs for namespaces used in document
(see UTF8StreamWriter(String[])
)
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |