home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / io / InputStreamReader.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.6 KB  |  68 lines

  1. package java.io;
  2.  
  3. import java.nio.charset.Charset;
  4. import java.nio.charset.CharsetDecoder;
  5. import sun.nio.cs.StreamDecoder;
  6.  
  7. public class InputStreamReader extends Reader {
  8.    // $FF: renamed from: sd sun.nio.cs.StreamDecoder
  9.    private final StreamDecoder field_0;
  10.  
  11.    public InputStreamReader(InputStream var1) {
  12.       super(var1);
  13.  
  14.       try {
  15.          this.field_0 = StreamDecoder.forInputStreamReader(var1, this, (String)null);
  16.       } catch (UnsupportedEncodingException var3) {
  17.          throw new Error(var3);
  18.       }
  19.    }
  20.  
  21.    public InputStreamReader(InputStream var1, String var2) throws UnsupportedEncodingException {
  22.       super(var1);
  23.       if (var2 == null) {
  24.          throw new NullPointerException("charsetName");
  25.       } else {
  26.          this.field_0 = StreamDecoder.forInputStreamReader(var1, this, var2);
  27.       }
  28.    }
  29.  
  30.    public InputStreamReader(InputStream var1, Charset var2) {
  31.       super(var1);
  32.       if (var2 == null) {
  33.          throw new NullPointerException("charset");
  34.       } else {
  35.          this.field_0 = StreamDecoder.forInputStreamReader(var1, this, var2);
  36.       }
  37.    }
  38.  
  39.    public InputStreamReader(InputStream var1, CharsetDecoder var2) {
  40.       super(var1);
  41.       if (var2 == null) {
  42.          throw new NullPointerException("charset decoder");
  43.       } else {
  44.          this.field_0 = StreamDecoder.forInputStreamReader(var1, this, var2);
  45.       }
  46.    }
  47.  
  48.    public String getEncoding() {
  49.       return this.field_0.getEncoding();
  50.    }
  51.  
  52.    public int read() throws IOException {
  53.       return this.field_0.read();
  54.    }
  55.  
  56.    public int read(char[] var1, int var2, int var3) throws IOException {
  57.       return this.field_0.read(var1, var2, var3);
  58.    }
  59.  
  60.    public boolean ready() throws IOException {
  61.       return this.field_0.ready();
  62.    }
  63.  
  64.    public void close() throws IOException {
  65.       this.field_0.close();
  66.    }
  67. }
  68.