java各种输入输出流
Class FileInputStream
-------------------------------------------
java.lang.Object
java.io.InputStream
java.io.FileInputStream
Class FileOutputStream
-------------------------------------------
java.lang.Object
java.io.OutputStream
java.io.FileOutputStream
Class BufferedInputStream
-------------------------------------------
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
Class BufferedOutputStream
-------------------------------------------
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
Class DataInputStream
-------------------------------------------
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
Class DataOutputStream
-------------------------------------------
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
Class FileReader
-------------------------------------------
java.lang.Object
java.io.Reader
java.io.InputStreamReader
java.io.FileReader
Class FileWriter
-------------------------------------------
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
java.io.FileWriter
Class BufferedReader
-------------------------------------------
java.lang.Object
java.io.Reader
java.io.BufferedReader
Class BufferedWriter
-------------------------------------------
java.lang.Object
java.io.Writer
java.io.BufferedWriter
Class ZipInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
java.util.zip.ZipInputStream
java.io下面有两个抽象类:InputStream和Reader
InputStream是表示字节输入流的所有类的超类
Reader是用于读取字符流的抽象类
InputStream提供的是字节流的读取,而非文本读取,这是和Reader类的根本区别。
即用Reader读取出来的是char数组或者String ,使用InputStream读取出来的是byte数组。