home *** CD-ROM | disk | FTP | other *** search
- package java.io;
-
- import java.nio.charset.Charset;
- import java.nio.charset.CharsetDecoder;
- import sun.nio.cs.StreamDecoder;
-
- public class InputStreamReader extends Reader {
- // $FF: renamed from: sd sun.nio.cs.StreamDecoder
- private final StreamDecoder field_0;
-
- public InputStreamReader(InputStream var1) {
- super(var1);
-
- try {
- this.field_0 = StreamDecoder.forInputStreamReader(var1, this, (String)null);
- } catch (UnsupportedEncodingException var3) {
- throw new Error(var3);
- }
- }
-
- public InputStreamReader(InputStream var1, String var2) throws UnsupportedEncodingException {
- super(var1);
- if (var2 == null) {
- throw new NullPointerException("charsetName");
- } else {
- this.field_0 = StreamDecoder.forInputStreamReader(var1, this, var2);
- }
- }
-
- public InputStreamReader(InputStream var1, Charset var2) {
- super(var1);
- if (var2 == null) {
- throw new NullPointerException("charset");
- } else {
- this.field_0 = StreamDecoder.forInputStreamReader(var1, this, var2);
- }
- }
-
- public InputStreamReader(InputStream var1, CharsetDecoder var2) {
- super(var1);
- if (var2 == null) {
- throw new NullPointerException("charset decoder");
- } else {
- this.field_0 = StreamDecoder.forInputStreamReader(var1, this, var2);
- }
- }
-
- public String getEncoding() {
- return this.field_0.getEncoding();
- }
-
- public int read() throws IOException {
- return this.field_0.read();
- }
-
- public int read(char[] var1, int var2, int var3) throws IOException {
- return this.field_0.read(var1, var2, var3);
- }
-
- public boolean ready() throws IOException {
- return this.field_0.ready();
- }
-
- public void close() throws IOException {
- this.field_0.close();
- }
- }
-