Overview of Java IO Stream Classifications
Java IO streams are categorized by direction and data type:
By Direction:
- Input Stream: Used for reading data.
- Output Stream: Used for writing data.
By Data Type:
- Byte Streams: Handle all file types (binary data). Key classes include
InputStream,OutputStream,FileInputStream, andFileOutputStream. - Character Streams: Handle pure text files (e.g., .txt, .md). Key classes include
ReaderandWriter.
- Byte Streams: Handle all file types (binary data). Key classes include
Note: The base stream classes are abstract classes.