public final class UTF8Writer extends Writer implements CompletelyCloseable
XmlWriter
.
The main reason for custom version is to allow for efficient
buffer recycling; the second benefit is that encoder has less
overhead for short content encoding (compared to JDK default
codecs).Constructor and Description |
---|
UTF8Writer(WriterConfig cfg,
OutputStream out,
boolean autoclose) |
public UTF8Writer(WriterConfig cfg, OutputStream out, boolean autoclose)
public void closeCompletely() throws IOException
closeCompletely
in interface CompletelyCloseable
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void write(char[] cbuf) throws IOException
write
in class Writer
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
write
in class Writer
IOException
public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
Copyright © 2012–2015 FasterXML. All rights reserved.