public final class InStreamUTF8 extends Reader implements CharStream
Constructor and Description |
---|
InStreamUTF8(InputStream in) |
InStreamUTF8(InputStreamBuffered in) |
Modifier and Type | Method and Description |
---|---|
int |
advance()
Next codepoint, given the first byte of any UTF-8 byte sequence is already known.
|
static int |
advance(InputStreamBuffered input)
Next codepoint
|
static int |
advance(InputStreamBuffered input,
int x)
Next codepoint, given the first byte of any UTF-8 byte sequence is already known.
|
void |
close() |
void |
closeStream()
Close the stream - different name from java.io.Reader.close
|
static String |
decode(byte[] bytes) |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
public InStreamUTF8(InputStream in)
public InStreamUTF8(InputStreamBuffered in)
public boolean ready() throws IOException
ready
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public void closeStream()
CharStream
closeStream
in interface CharStream
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public final int read() throws IOException
read
in class Reader
IOException
public final int advance()
advance
in interface CharStream
public static final int advance(InputStreamBuffered input)
public static final int advance(InputStreamBuffered input, int x)
public static String decode(byte[] bytes)
Licenced under the Apache License, Version 2.0