jist.swans.app.io
Class InputStreamReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by jist.swans.app.io.InputStreamReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class InputStreamReader
extends java.io.InputStreamReader

A functionally identical port of java.io.InputStreamReader, primarily brought into jist.swans.app.io package so that it could be dynamically rewritten.

Since:
SWANS1.0
Version:
$Id: InputStreamReader.java,v 1.4 2004/04/06 16:07:46 barr Exp $
Author:
Sun Microsystems, Rimon Barr <barr+jist@cs.cornell.edu>

Field Summary
private  sun.nio.cs.StreamDecoder sd
          unicode to ascii decoder.
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
InputStreamReader(InputStream in)
           
InputStreamReader(InputStream in, java.nio.charset.Charset cs)
           
InputStreamReader(InputStream in, java.nio.charset.CharsetDecoder dec)
           
InputStreamReader(InputStream in, java.lang.String charsetName)
           
 
Method Summary
 void close()
           
 java.lang.String getEncoding()
           
 int read()
           
 int read(char[] cbuf, int offset, int length)
           
 boolean ready()
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sd

private final sun.nio.cs.StreamDecoder sd
unicode to ascii decoder.

Constructor Detail

InputStreamReader

public InputStreamReader(InputStream in)
See Also:
InputStreamReader

InputStreamReader

public InputStreamReader(InputStream in,
                         java.lang.String charsetName)
                  throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException
See Also:
InputStreamReader

InputStreamReader

public InputStreamReader(InputStream in,
                         java.nio.charset.Charset cs)
See Also:
InputStreamReader

InputStreamReader

public InputStreamReader(InputStream in,
                         java.nio.charset.CharsetDecoder dec)
See Also:
InputStreamReader
Method Detail

getEncoding

public java.lang.String getEncoding()
Overrides:
getEncoding in class java.io.InputStreamReader
See Also:
InputStreamReader

read

public int read()
         throws java.io.IOException,
                JistAPI.Continuable
Overrides:
read in class java.io.InputStreamReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
InputStreamReader

read

public int read(char[] cbuf,
                int offset,
                int length)
         throws java.io.IOException,
                JistAPI.Continuable
Overrides:
read in class java.io.InputStreamReader
Throws:
java.io.IOException
JistAPI.Continuable
See Also:
InputStreamReader

ready

public boolean ready()
              throws java.io.IOException
Overrides:
ready in class java.io.InputStreamReader
Throws:
java.io.IOException
See Also:
InputStreamReader

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStreamReader
Throws:
java.io.IOException
See Also:
InputStreamReader