Mega Code Archive

 
Categories / Java Tutorial / File
 

Understanding Streams

A stream 'is' a sequence of bytes When writing data to a stream, the stream is called an output stream. When reading data from a stream, the stream is called an input stream. If a stream has a buffer in memory, it is a buffered stream. Binary Streams contain binary data. 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.