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.
|
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 Writer
IOException
public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.