Input Streams

We classify input streams by:
  1. the source passed to their constructor
  2. the special methods they add
The abstract superclass of all input streams is:
InputStream
+ read() : int
+ close()
Subclasses of InputStream include:
FileInputStream
+ ctor( File )
+ ctor( String )
ByteArrayInputStream
+ ctor( byte[] )
PipedInputStream
+ ctor( PipedOutputStream )
+ connect(PipedOutputStream)
SequenceInputStream
+ ctor( Enumeration )
Filter input streams take other input streams as their source:
ObjectInputStream
+ ctor(InputStream)
+ readObject() : Object
FilterInputStream
# ctor( InputStream )
Subclasses of FilterInputStream include:
BufferedInputStream
+ ctor(InputStream)
CheckedInputStream
+ ctor(InputStream, Checksum)
+ getChecksum() : Checksum
DataInputStream
+ ctor(InputStream)
+ readDouble() : double
+ readInt() : int
... and so on
PushbackInputStream
+ ctor(InputStream)
+ unread(int)
A special filter input stream is the abstract:
InflaterInputStream
+ ctor(InputStream, Inflater)
Subclasses of InflaterInputStream include:
ZipInputStream
+ ctor(InputStream)
+ getNextEntry() : ZipEntry
+ closeEntry()
JarInputStream
+ ctor(InputStream)
+ getManifest() : Manifest