Package org.apache.axiom.util.stax
Class XMLStreamWriterWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.axiom.util.stax.XMLStreamWriterWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class XMLStreamWriterWriter extends Writer
Writer
implementation that writes data asXMLStreamConstants.CHARACTERS
events to anXMLStreamWriter
. Note that this class AnyXMLStreamException
occurring in the underlyingXMLStreamWriter
will be wrapped usingXMLStreamIOException
.
-
-
Constructor Summary
Constructors Constructor Description XMLStreamWriterWriter(XMLStreamWriter writer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
XMLStreamWriterWriter
public XMLStreamWriterWriter(XMLStreamWriter writer)
Constructor.- Parameters:
writer
- the XML stream writer to write the events to
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public void write(String str) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public void write(int c) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
-