public final class UTF8Writer extends Writer
| Constructor and Description |
|---|
UTF8Writer(IOContext ctxt,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
Writer |
append(char c) |
void |
close() |
protected int |
convertSurrogate(int secondPart)
Method called to calculate UTF codepoint, from a surrogate pair.
|
void |
flush() |
protected static void |
illegalSurrogate(int code) |
protected static String |
illegalSurrogateDesc(int code) |
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(IOContext ctxt, OutputStream out)
public Writer append(char c) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic 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 WriterIOExceptionprotected int convertSurrogate(int secondPart)
throws IOException
IOExceptionprotected static void illegalSurrogate(int code)
throws IOException
IOExceptionprotected static String illegalSurrogateDesc(int code)
Copyright © 2008–2018 FasterXML. All rights reserved.