API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. InputStream View Source
Author(s)
Arthur van Hoff
Since
JDK1.0
Version
1.52, 06/07/06
Serial
Hierarchy
 Object
      InputStream
Implements
 Closeable
Subclasses
Description
publicabstract abstract class InputStream
  This abstract class is the superclass of all classes representing an input stream of bytes.
Constructors
public InputStream ()
Methods
Hide/Show inherited methods
public int available () throws IOException
  Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
public void close () throws IOException [Specified in Closeable]
  Closes this input stream and releases any system resources associated with the stream.
publicsynchronized void mark (int readlimit)
  Marks the current position in this input stream.
public boolean markSupported ()
  Tests if this input stream supports the mark and reset methods.
publicabstract int read () throws IOException
  Reads the next byte of data from the input stream.
public int read (byte[] b) throws IOException
  Reads some number of bytes from the input stream and stores them into the buffer array b.
public int read (byte[] b, int off, int len) throws IOException
  Reads up to len bytes of data from the input stream into an array of bytes.
publicsynchronized void reset () throws IOException
  Repositions this stream to the position at the time the mark method was last called on this input stream.
public long skip (long n) throws IOException
  Skips over and discards n bytes of data from this input stream.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar