java.io.InputStream (JDK 1.0)
This abstract class is the superclass of all input streams. It defines the basic input methods that all input stream classes provide.
read() reads a single byte or an array or subarray of bytes. It returns the byte read, or the number of bytes read, or -1 if the end-of-file has been reached. skip() skips a specified number of bytes of input. available() returns the number of bytes that can be read without blocking. close() closes the input stream and frees up any system resources associated with it. The stream should not be used after close() has been called.
If markSupported() returns true for a given InputStream, that stream supports mark() and reset() methods. mark() marks the current position in the input stream so that reset() can return to that position as long as no more than the specified number of bytes have been read between the mark() and reset(). See also Reader.
public abstract classInputStreamextends Object { //Default Constructor: public InputStream()//Public Instance Methodspublic intavailable() throws IOException; public voidclose() throws IOException; public synchronized voidmark(intreadlimit); public booleanmarkSupported(); public abstract intread() throws IOException; public intread(byte[]b) throws IOException; public intread(byte[]b, intoff, intlen) throws IOException; public synchronized voidreset() throws IOException; public longskip(longn) throws IOException; }
Extended By:
ByteArrayInputStream, FileInputStream, FilterInputStream, ObjectInputStream, PipedInputStream, SequenceInputStream, StringBufferInputStream
Passed To:
BufferedInputStream(), CheckedInputStream(), DataInputStream(), FilterInputStream(), GZIPInputStream(), InflaterInputStream(), InputStreamReader(), LineNumberInputStream(), ObjectInputStream(), Properties.load(), PropertyResourceBundle(), PushbackInputStream(), Runtime.getLocalizedInputStream(), SequenceInputStream(), StreamTokenizer(), System.setIn(), URLConnection.guessContentTypeFromStream(), ZipInputStream()
Returned By:
Class.getResourceAsStream(), ClassLoader.getResourceAsStream(), ClassLoader.getSystemResourceAsStream(), Process.getErrorStream(), Process.getInputStream(), Runtime.getLocalizedInputStream(), Socket.getInputStream(), SocketImpl.getInputStream(), URL.openStream(), URLConnection.getInputStream(), ZipFile.getInputStream()
Type Of:
FilterInputStream.in, System.in