InputStream / OutputStream : IO byte stream, non coding(non ASCII , UNICODE...)
Reader/Writer : IO character stream, with coding
node stream : can write to or read from some places : File, Networks, ....
process stream : a reference and encapsulation of an existent stream
| InputStream | OutputStream | Reader | Writer | ||
| node stream | file | FileInputStream | FileOutputStream | FileReader | FileWriter |
| Array | ByteArray... | ByteArray... | ByteArray... | ByteArray... | |
| String | null | null | StringReader | StringWriter | |
| pipe | Piped... | Piped... | Piped... | Piped... | |
| process stream | switch | null | null | InputStreamReader | OutputStreamWriter |
| Buffer | Buffered... | Buffered... | Buffered... | Buffered... | |
| Data | Data ... | Data ... | null | null | |
| Object | Object... | Object... | null | null | |
| null | Print... | null | Print... |
No comments:
Post a Comment