API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. InputStreamReader View Source
Author(s)
Mark Reinhold
Since
JDK1.1
Version
1.47, 05/11/17
Serial
Hierarchy
 Object
      Reader
          InputStreamReader
Implements
Subclasses
Description
public class InputStreamReader
  An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset.
Constructors
public InputStreamReader (InputStream in)
  Creates an InputStreamReader that uses the default charset.
public InputStreamReader (InputStream in, Charset cs)
  Creates an InputStreamReader that uses the given charset.
public InputStreamReader (InputStream in, CharsetDecoder dec)
  Creates an InputStreamReader that uses the given charset decoder.
public InputStreamReader (InputStream in, String charsetName) throws UnsupportedEncodingException
  Creates an InputStreamReader that uses the named charset.
Methods
public void close () throws IOException [Specified in Reader]
public String getEncoding ()
  Returns the name of the character encoding being used by this stream.
public void mark (int readAheadLimit) throws IOException [Inherited From Reader]
  Marks the present position in the stream.
public boolean markSupported () [Inherited From Reader]
  Tells whether this stream supports the mark() operation.
public int read () throws IOException [Overrides Reader]
  Reads a single character.
public int read (char[] cbuf) throws IOException [Inherited From Reader]
  Reads characters into an array.
public int read (char[] cbuf, int offset, int length) throws IOException [Specified in Reader]
  Reads characters into a portion of an array.
public int read (CharBuffer target) throws IOException [Inherited From Reader]
  Attempts to read characters into the specified character buffer.
public boolean ready () throws IOException [Overrides Reader]
  Tells whether this stream is ready to be read.
public void reset () throws IOException [Inherited From Reader]
  Resets the stream.
public long skip (long n) throws IOException [Inherited From Reader]
  Skips characters.
Fields
protected Object lock [Inherited From Reader]
  The object used to synchronize operations on this stream.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar