Streams
Streams
Input:
Input Devices:
Output:
Output Devices:
2. Stream:
3. Types of Streams:
1. Byte Streams
a. Provide a convenient means for handling input and output of bytes.
b. Used when reading or writing binary data.
c. Suitable for: Save videos, audios, characters
d. Available in java.io package.
2. Character Streams
a. Provide a convenient means for handling input and output of characters.
b. Read and write 16-bit Unicode data.
c. Suitable for: read text file.
d. Available in java.io package.
4. Differences: Char vs Byte Streams
5. Class Hiererachy:
1. File
2. Array
3. Object
4. Pipe (network)
5. Data (Buffer & Filter)
b. Byte Streams
c. Character Streams
7. File Methods