Closeable, Flushable, Appendable, AutoCloseablepublic 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 | Description |
|---|---|---|
protected |
XmlWriterWrapper(XmlWriter writer) |
| Modifier and Type | Method | 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 AutoCloseableclose in interface Closeableclose 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 © 2019 FasterXML. All rights reserved.