Programs use byte streams to perform input and output of 8-bit bytes.
All byte stream classes are descended from this two class:
All other stream types are built on byte streams.
Buffered Byte Stream
|ByteArrayInputStream||Read||Buffer (ByteArray)||A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream.|
|ByteArrayOutputStream||Write||Buffer (ByteArray)||This class implements an output stream in which the data is written into a byte array.|
|BufferedInputStream||Read||Buffer (ByteArray)||A BufferedInputStream adds functionality on buffer streams-namely, the support the mark and reset methods.|
|BufferedOutputStream||Write||Buffer (ByteArray)||The class implements a buffered output stream.|
Piped Byte Stream
|PipedInputStream||Pipe Read||Na||A piped input stream should be connected to a piped output stream; the piped input stream then provides whatever data bytes are written to the piped output stream.|
|PipedOutputStream||Pipe Write||Na||A piped output stream can be connected to a piped input stream to create a communications pipe.|
Random Access Byte Stream
|RandomAccessFile||Pointer Read/Write||Byte of Array||Instances of this class support both reading and writing to a random access file.|
Low Level (FileChannel)
The channels class are from the Java NIO Package.