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 Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public final void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public final void write(char[] cbuf) throws IOException
write
in class Writer
IOException
public abstract void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public final void write(int c) throws IOException
write
in class Writer
IOException
public abstract void write(String str) throws IOException
write
in class Writer
IOException
public abstract void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
Copyright © 2018 FasterXML. All rights reserved.