public class UnicodeReader extends Reader
| Constructor and Description |
|---|
UnicodeReader(InputStream in) |
UnicodeReader(InputStream aIn,
Charset aCharset) |
UnicodeReader(InputStream in,
String charsetName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getEncoding()
Get stream encoding or NULL if stream is uninitialized.
|
protected void |
init()
Read-ahead four bytes and check for BOM marks.
|
int |
read(char[] cbuf,
int off,
int len) |
public UnicodeReader(InputStream in)
in - inputstream to be readdefaultEnc - default encoding if stream does not have BOM marker. Give NULL
to use system-level default.public UnicodeReader(InputStream in, String charsetName)
public UnicodeReader(InputStream aIn, Charset aCharset)
public String getEncoding()
protected void init()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionCopyright © 2010-2014 anotheria.net. All Rights Reserved.