public final class UTFInputStreamReader extends InputStreamReader
| Modifier | Constructor and Description |
|---|---|
private |
UTFInputStreamReader(InputStream in) |
private |
UTFInputStreamReader(InputStream in,
String cs) |
| Modifier and Type | Method and Description |
|---|---|
static UTFInputStreamReader |
create(InputStream input)
Creates a new
InputStreamReader from the InputStream with UTF-8 as default encoding. |
static UTFInputStreamReader |
create(InputStream input,
String defaultEncoding)
Creates a new
InputStreamReader from the InputStream. |
close, getEncoding, read, read, readyprivate UTFInputStreamReader(InputStream in)
private UTFInputStreamReader(InputStream in, String cs) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static UTFInputStreamReader create(InputStream input) throws IOException
InputStreamReader from the InputStream with UTF-8 as default encoding.input - input streamIOException - if any I/O error occurscreate(java.io.InputStream, String)public static UTFInputStreamReader create(InputStream input, String defaultEncoding) throws IOException
InputStreamReader from the InputStream.input - input streamdefaultEncoding - Used, when no BOM was recognized. Can be null.IOException - if any I/O error occurs