Package com.ctc.wstx.sw
Class XmlWriterWrapper
java.lang.Object
java.io.Writer
com.ctc.wstx.sw.XmlWriterWrapper
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Direct Known Subclasses:
XmlWriterWrapper.RawWrapper
,XmlWriterWrapper.TextWrapper
This is a simple wrapper class, which decorates an
XmlWriter
to look like a Writer. This is necessary to implement a (legacy)
character quoting system introduced for Woodstox 2.0, which relies
on having a Writer to use for outputting.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
This wrapper directs calls towriteRaw
methods.private static class
This wrapper directs calls towriteCharacters
methods. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
final void
flush()
static XmlWriterWrapper
static XmlWriterWrapper
final void
write
(char[] cbuf) abstract void
write
(char[] cbuf, int off, int len) final void
write
(int c) abstract void
abstract void
-
Field Details
-
mWriter
-
mBuffer
private char[] mBuffer
-
-
Constructor Details
-
XmlWriterWrapper
-
-
Method Details
-
wrapWriteRaw
-
wrapWriteCharacters
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-