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() |
int |
read(char[] cbuf,
int off,
int len) |
public UnicodeReader(InputStream in, String defaultEnc) throws IOException
in - input streamdefaultEnc - default encoding (used only if BOM is not found) or
null to use system defaultIOException - if an I/O error occurspublic String getDefaultEncoding()
public String getEncoding()
public 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 © 2012. All Rights Reserved.