public class UnicodeReader extends Reader
构造器和说明 |
---|
UnicodeReader(InputStream in,
String defaultEncoding) |
限定符和类型 | 方法和说明 |
---|---|
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 defaultEncoding)
in
- inputstream to be readdefaultEncoding
- 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
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
在类中 Reader
IOException