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
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
Copyright © 2020. All rights reserved.