Compare the classes related to input and output, and hope to help you
Original article http://www.java2000.net/viewthread.jsp? Tid = 1225
Input |
Output |
Data Type |
Description |
|
Inputstream |
Outputstream |
Byte |
Bottom Layer |
|
|
Bytearrayinputstream |
|
Bytearrayoutputstream |
Byte |
With byte Buffer |
Buffer |
|
Fileinputstream |
|
Fileoutputstream |
Byte |
Directly operate on files |
|
|
Filterinputstream |
|
Filteroutputstream |
Byte |
Filters out the superclass of the output stream. |
|
|
|
Bufferinputstream |
|
|
Bufferedoutputstream |
Byte |
Buffer data |
Buffer |
|
|
Checkedinputstream |
|
|
Checkedoutputstream |
Byte |
Data Verification |
|
|
|
Cipherinputstream |
|
|
Cipheroutputstream |
Byte |
Encrypted data |
|
|
|
Datainputstream |
|
|
Dataoutputstream |
Basic Type |
Process all basic types |
|
|
|
Deflaterinputstream |
|
|
Deflateroutputstream |
Byte |
Deflate Compression |
|
|
|
|
|
|
|
Gzipoutputstream |
Byte |
Gzip compressed write |
|
|
|
|
|
|
|
Zipoutputstream |
Byte |
Zip write |
|
|
|
|
|
|
|
|
Jaroutputstream |
Byte |
Jar write |
|
|
|
Digestinputstream |
|
|
Digestoutputstream |
Byte |
Summary information |
|
|
|
Inflaterinputstream |
|
|
Inflateroutputstream |
Byte |
Compressed read |
|
|
|
|
Gzipinputstream |
|
|
|
|
|
Byte |
Gzip read |
|
|
|
|
Zipinputstream |
|
|
|
|
|
Byte |
Zip Processing |
|
|
|
|
|
Jarinputstream |
|
|
|
|
|
Byte |
Jar Processing |
|
|
|
Linenumberinputstream |
|
|
|
|
|
Byte |
Outdated |
|
|
|
; Progressmonitorinputstream |
|
|
|
|
|
Byte |
Progress Monitoring |
|
|
|
; Pushbackinputstream |
|
|
|
|
|
Byte |
Unreadable capability |
|
|
Objectinputstream |
|
|
|
|
|
Byte |
Serialization |
|
|
; Pipedinputstream |
|
; Pipedoutputstream |
Byte |
Connect input and output streams |
|
|
Sequenceinputstream |
|
|
|
|
|
Byte |
Continuous reading of Multiple Input streams |
|
|
Stringbufferinputstream |
|
|
|
|
|
String |
Outdated |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reader |
Writer |
Char, string |
|
|
|
Bufferedreader |
|
Bufferedwriter |
|
Buffered character operations |
Buffer |
|
|
Linenumberreader |
|
|
|
|
|
|
Buffer character input stream of the trace row number |
Buffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Chararrayreader |
|
Chararraywriter |
|
Character Array Buffer |
Buffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Filterreader |
|
Filterwriter |
|
Read/write filtered streams |
|
|
|
; Pushbackreader |
|
|
|
|
|
|
Allow characters to be pushed back |
Buffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inputstreamreader |
|
Outputstreamwriter |
|
The bridge between byte stream and byte stream |
Encoding type |
|
|
Filereader |
|
|
Filewriter |
|
Read/write character files |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Pipedreader |
|
; Pipedwriter |
|
The sent streams. |
Buffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Stringreader |
|
Stringwriter |
|
Conversion of strings and streams |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Printwriter |
|
Output streaming objects to text Format |