从左往右是父类到子类
操作字符流的类:
Writer --> OutputStreamWriter (字节流转字符流,InputStream作参数) --> FileWriter
Reader --> InputStreamReader (字节流转字符流,OutputStream作参数) --> FileReader
操作字节流的类:
InputStream --> FileInputStream
-------------> ByteArrayInputStream
OutputStream --> FileOutputStream
--------------> ByteArrayOutputStream
--------------> PrintStream
网友评论