public class UTF8StreamReader
extends java.io.Reader
| Constructor and Description |
|---|
UTF8StreamReader(java.io.InputStream in)
Create a UTF8StreamReader wrapped around the specified InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream and releases any system resources associated with
it.
|
int |
read()
Reads a single character.
|
int |
read(char[] cbuf)
Reads characters into an array.
|
int |
read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
public UTF8StreamReader(java.io.InputStream in)
in - InputStream to read and decodepublic int read()
throws java.io.IOException
read in class java.io.Reader0x00-0xffff), or -1 if the end of the stream has
been reachedjava.io.IOException - If an I/O error occurspublic int read(char[] cbuf)
throws java.io.IOException
read in class java.io.Readercbuf - Destination bufferjava.io.IOException - If an I/O error occurspublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readercbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to readjava.io.IOException - If an I/O error occurspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOException - If an I/O error occurs