Closeable, AutoCloseable, Readablepublic class UnicodeReader extends Reader
| Constructor | Description |
|---|---|
UnicodeReader(InputStream in) |
| Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmark, markSupported, read, read, read, ready, reset, skip, transferTopublic UnicodeReader(InputStream in)
in - InputStream to be readpublic String getEncoding()
protected void init()
throws IOException
IOException - if InputStream cannot be createdpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionCopyright © 2008–2018. All rights reserved.