public final class UTF8Writer extends Writer
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
_out |
protected byte[] |
_outBuffer |
protected int |
_outBufferLast |
protected int |
_outPtr |
(package private) int |
_surrogate
When outputting chars from BMP, surrogate pairs need to be coalesced.
|
(package private) static int |
SURR1_FIRST |
(package private) static int |
SURR1_LAST |
(package private) static int |
SURR2_FIRST |
(package private) static int |
SURR2_LAST |
Constructor and Description |
---|
UTF8Writer(OutputStream out) |
UTF8Writer(OutputStream out,
int bufferLength) |
static final int SURR1_FIRST
static final int SURR1_LAST
static final int SURR2_FIRST
static final int SURR2_LAST
protected OutputStream _out
protected byte[] _outBuffer
protected final int _outBufferLast
protected int _outPtr
int _surrogate
public UTF8Writer(OutputStream out)
public UTF8Writer(OutputStream out, int bufferLength)
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