public abstract class XmlWriterWrapper extends Writer
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.| Modifier | Constructor and Description |
|---|---|
protected |
XmlWriterWrapper(XmlWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
static XmlWriterWrapper |
wrapWriteCharacters(XmlWriter xw) |
static XmlWriterWrapper |
wrapWriteRaw(XmlWriter xw) |
void |
write(char[] cbuf) |
abstract void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
abstract void |
write(String str) |
abstract void |
write(String str,
int off,
int len) |
protected final XmlWriter mWriter
protected XmlWriterWrapper(XmlWriter writer)
public static XmlWriterWrapper wrapWriteRaw(XmlWriter xw)
public static XmlWriterWrapper wrapWriteCharacters(XmlWriter xw)
public final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic final void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic final void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic abstract void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic final void write(int c)
throws IOException
write in class WriterIOExceptionpublic abstract void write(String str) throws IOException
write in class WriterIOExceptionpublic abstract void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionCopyright © 2020 FasterXML. All rights reserved.