public class UnicodeReader extends Reader
| Constructor and Description |
|---|
UnicodeReader(InputStream in,
String defaultEnc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getDefaultEncoding() |
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, String defaultEnc)
in - inputstream to be readdefaultEnc - default encoding if stream does not have
BOM marker. Give NULL to use system-level default.public String getDefaultEncoding()
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 © 2020. All rights reserved.