public class XMLStreamWriterWriter extends Writer
Writer implementation that writes data as
XMLStreamConstants.CHARACTERS events to an XMLStreamWriter.
Note that this class
Any XMLStreamException occurring in the underlying XMLStreamWriter will
be wrapped using XMLStreamIOException.| Constructor and Description |
|---|
XMLStreamWriterWriter(javax.xml.stream.XMLStreamWriter writer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
public XMLStreamWriterWriter(javax.xml.stream.XMLStreamWriter writer)
writer - the XML stream writer to write the events topublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © The Apache Software Foundation. All Rights Reserved.