The ByteArrayOutputStream class writes data into the successive components of a byte array using the methods of java.io.OutputStream :
The two main classes are
- java.io.InputStream and
These are abstract base classes for
many different subclasses
with more-specialized abilities.
are abstract classes, many methods in the class library are only
specified to return an InputStream
not the more-specific subclass
Click the Quiz link below to take a brief multiple-choice quiz on the basics of streams.
Stream Basics Quiz