|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Reader
org.openjena.atlas.io.InStreamUTF8
public final class InStreamUTF8
Fast and streaming UTF-8
| Constructor Summary | |
|---|---|
InStreamUTF8(java.io.InputStream in)
|
|
InStreamUTF8(InputStreamBuffered in)
|
|
| Method Summary | |
|---|---|
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 java.lang.String |
decode(byte[] bytes)
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
boolean |
ready()
|
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InStreamUTF8(java.io.InputStream in)
public InStreamUTF8(InputStreamBuffered in)
| Method Detail |
|---|
public boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Readerjava.io.IOExceptionpublic void closeStream()
CharStream
closeStream in interface CharStream
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
public final int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic final int advance()
advance in interface CharStreampublic static final int advance(InputStreamBuffered input)
public static final int advance(InputStreamBuffered input,
int x)
public static java.lang.String decode(byte[] bytes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||