The Stream Classes
Almost all the classes that work directly with streams are part of the java.io
package. (There are also a few more in the sun.io
and sun.net
packages, but those are deliberately hidden from you. There are also a couple in java.util.zip
.) The two main classes are java.io.InputStream
and java.io.OutputStream
.
These are abstract base classes for many different subclasses with more specialized abilities, including:
- BufferedInputStream
- BufferedOutputStream
- ByteArrayInputStream
- ByteArrayOutputStream
- DataInputStream
- DataOutputStream
- FileInputStream
- FileOutputStream
- FilterInputStream
- FilterOutputStream
- LineNumberInputStream
- ObjectInputStream
- ObjectOutputStream
- PipedInputStream
- PipedOutputStream
- PrintStream
- PushbackInputStream
- SequenceInputStream
- StringBufferInputStream
Previous | Next | Top
Last Modified August 15, 1997
Copyright 1997 Elliotte Rusty Harold
elharo@metalab.unc.edu