| java.lang.Object javanet.staxutils.io.StAXStreamWriter
StAXStreamWriter | public class StAXStreamWriter implements XMLStreamWriter(Code) | | An
XMLStreamWriter implementation that writes to a character stream.
author: Christian Niles version: $Revision: 1.1 $ |
Method Summary | |
public synchronized void | close() | protected void | closeElementContext() Closes the current
ElementContext , writing any cached content and
making it read-only. | public synchronized void | flush() | public synchronized String | getCurrentPath() Returns the current position of the writer as a path of
QName strings. | public NamespaceContext | getNamespaceContext() | public String | getPrefix(String uri) | public Object | getProperty(String name) | public synchronized void | setDefaultNamespace(String uri) | public void | setNamespaceContext(NamespaceContext context) | public synchronized void | setPrefix(String prefix, String uri) | public synchronized void | writeAttribute(QName name, String value) | public void | writeAttribute(String prefix, String namespaceURI, String localName, String value) | public void | writeAttribute(String namespaceURI, String localName, String value) | public void | writeAttribute(String localName, String value) | public synchronized void | writeCData(String data) | public synchronized void | writeCharacters(char[] text, int start, int len) | public synchronized void | writeCharacters(String text) | public synchronized void | writeComment(String data) | public synchronized void | writeDTD(String dtd) | public void | writeDefaultNamespace(String namespaceURI) | public void | writeEmptyElement(String prefix, String localName, String namespaceURI) | public void | writeEmptyElement(String namespaceURI, String localName) | public void | writeEmptyElement(String localName) | public synchronized void | writeEndDocument() | public synchronized void | writeEndElement() | public synchronized void | writeEntityRef(String name) | public synchronized void | writeNamespace(String prefix, String namespaceURI) | public synchronized void | writeProcessingInstruction(String target, String data) | public void | writeProcessingInstruction(String target) | public void | writeStartDocument() | public void | writeStartDocument(String version) | public synchronized void | writeStartDocument(String encoding, String version) | public synchronized void | writeStartElement(String prefix, String localName, String namespaceURI, boolean isEmpty) Core start tag output method called by all other writeXXXElement
methods. | public void | writeStartElement(String prefix, String localName, String namespaceURI) | public void | writeStartElement(String namespaceURI, String localName) | public void | writeStartElement(String localName) |
StAXStreamWriter | public StAXStreamWriter(OutputStream stream)(Code) | | Constructs a StAXStreamWriter that writes to the provided
OutputStream using the platform default encoding.
Parameters: stream - The destination stream. |
StAXStreamWriter | public StAXStreamWriter(Writer writer)(Code) | | Constructs a StAXStreamWriter that writes to the provided
Writer .
Parameters: writer - The destination Writer instance. |
StAXStreamWriter | public StAXStreamWriter(Writer writer, NamespaceContext rootContext)(Code) | | Constructs a StAXStreamWriter that writes to the provided
Writer .
Parameters: writer - The destination Writer instance. Parameters: rootContext - The root namespace context. |
closeElementContext | protected void closeElementContext() throws XMLStreamException(Code) | | Closes the current
ElementContext , writing any cached content and
making it read-only. If the current context is empty, it will be popped and
replaced with its parent context. If no context is open, this method has no
effects.
throws: XMLStreamException - If an error occurs flushing any element content. |
getCurrentPath | public synchronized String getCurrentPath()(Code) | | Returns the current position of the writer as a path of
QName strings.
The current position of the writer. |
writeCharacters | public synchronized void writeCharacters(char[] text, int start, int len) throws XMLStreamException(Code) | | |
writeStartElement | public synchronized void writeStartElement(String prefix, String localName, String namespaceURI, boolean isEmpty) throws XMLStreamException(Code) | | Core start tag output method called by all other writeXXXElement
methods.
Parameters: prefix - The tag prefix. Parameters: localName - The tag local name. Parameters: namespaceURI - The namespace URI of the prefix. Parameters: isEmpty - Whether the tag is empty. throws: XMLStreamException - If an error occurs writing the tag to the stream. |
|
|