| java.lang.Object org.jibx.runtime.impl.XMLWriterNamespaceBase org.jibx.runtime.impl.StAXWriter
StAXWriter | public class StAXWriter extends XMLWriterNamespaceBase (Code) | | Writer generating StAX parse event stream output.
author: Dennis M. Sosnoski version: 1.0 |
Method Summary | |
public void | addAttribute(int index, String name, String value) | public void | close() | public void | closeEmptyTag() | public void | closeStartTag() | public IXMLWriter | createChildWriter(String[] uris) Create a child writer instance to be used for a separate binding. | protected void | defineNamespace(int index, String prefix) | public void | endTag(int index, String name) | public void | flush() | public void | indent() | public void | setIndentSpaces(int count, String newline, char indent) | public void | setWriter(XMLStreamWriter wrtr) Set StAX writer. | public void | startTagClosed(int index, String name) | public void | startTagNamespaces(int index, String name, int[] nums, String[] prefs) | public void | startTagOpen(int index, String name) | protected void | undefineNamespace(int index) | public void | writeCData(String text) | public void | writeComment(String text) | public void | writeDocType(String name, String sys, String pub, String subset) | public void | writeEntityRef(String name) | public void | writePI(String target, String data) | public void | writeTextContent(String text) | public void | writeXMLDecl(String version, String encoding, String standalone) |
StAXWriter | public StAXWriter(String[] uris)(Code) | | Constructor.
Parameters: uris - ordered array of URIs for namespaces used in document (mustbe 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") |
StAXWriter | public StAXWriter(String[] uris, XMLStreamWriter wrtr)(Code) | | Constructor with writer supplied.
Parameters: uris - ordered array of URIs for namespaces used in document (mustbe 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") Parameters: wrtr - StAX writer for parse event output |
StAXWriter | public StAXWriter(StAXWriter base, String[] uris)(Code) | | Copy constructor. This initializes the writer and extension namespace
information from an existing instance.
Parameters: base - existing instance Parameters: uris - ordered array of URIs for namespaces used in document |
createChildWriter | public IXMLWriter createChildWriter(String[] uris)(Code) | | Create a child writer instance to be used for a separate binding. The
child writer inherits the output handling from this writer, while using
the supplied namespace URIs.
Parameters: uris - ordered array of URIs for namespaces used in document(see StAXWriter.StAXWriter(String[])) child writer |
setIndentSpaces | public void setIndentSpaces(int count, String newline, char indent)(Code) | | |
setWriter | public void setWriter(XMLStreamWriter wrtr)(Code) | | Set StAX writer.
Parameters: wrtr - StAX writer for parse event output |
undefineNamespace | protected void undefineNamespace(int index)(Code) | | |
|
|