- java.lang.Object
-
- java.io.InputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
AudioInputStream,ByteArrayInputStream,FileInputStream,FilterInputStream,InputStream,ObjectInputStream,PipedInputStream,SequenceInputStream,StringBufferInputStream
public abstract class InputStream extends Object implements Closeable
This abstract class is the superclass of all classes representing an input stream of bytes.Applications that need to define a subclass of
InputStreammust always provide a method that returns the next byte of input.- Since:
- 1.0
- See Also:
BufferedInputStream,ByteArrayInputStream,DataInputStream,FilterInputStream,read(),OutputStream,PushbackInputStream
-
-
Constructor Summary
Constructors Constructor Description InputStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intavailable()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.void
-