Understanding Streams : Stream « File « Java Tutorial






  1. A stream 'is' a sequence of bytes
  2. When writing data to a stream, the stream is called an output stream.
  3. When reading data from a stream, the stream is called an input stream.
  4. If a stream has a buffer in memory, it is a buffered stream.
  5. Binary Streams contain binary data.
  6. Character Streams have character data and are used for storing and retrieving text
ClassDescription
InputStreamThe base class for byte stream input operations.
OutputStreamThe base class for byte stream output operations.
BufferedInputStreamBuffers input from another stream in memory to make the read operations more efficient.


11.6.Stream
11.6.1.Understanding Streams
11.6.2.Stream Copier
11.6.3.File typer
11.6.4.File copier
11.6.5.Open Stream from URL