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 ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic void closeStream()
CharStreamcloseStream in interface CharStreampublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic final int read()
throws IOException
read in class ReaderIOExceptionpublic final int advance()
advance in interface CharStreampublic 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