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) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeCompletely() |
void |
flush() |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
public UTF8Writer(WriterConfig cfg, OutputStream out, boolean autoclose)
public void closeCompletely()
throws IOException
closeCompletely in interface CompletelyCloseableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionCopyright © 2020 FasterXML. All rights reserved.