First page Back Continue Last page Overview Graphics
Source vs. Filter streams
In the plumbing example we saw that there are 2 different kinds of Input/Output Streams:
- Source Streams: Streams that are designed to connect to a specific source such as: FileInputStream, ByteArrayInputStream, etc.
- Filter Streams: Streams that are designed to connect to other streams – that may offer some more functionality. For example: BufferedInputStream, DataInputStream, etc.