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 Appendable
append
in class Writer
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
protected int convertSurrogate(int secondPart) throws IOException
IOException
protected static void illegalSurrogate(int code) throws IOException
IOException
protected static String illegalSurrogateDesc(int code)
Copyright © 2017 JBoss by Red Hat. All rights reserved.