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
Writerimplementation that writes data asXMLStreamConstants.CHARACTERSevents to anXMLStreamWriter. Note that this class AnyXMLStreamExceptionoccurring in the underlyingXMLStreamWriterwill 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 voidclose()voidflush()voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str)voidwrite(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:
writein classWriter- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(String str) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(int c) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
-