Java-IO流总结

  • 内容
  • 评论
  • 相关

四大基流:

InputStream---- OutputStream

Reader         ---- Writer

IO流的总结和梳理:

文件流:

FileInputStream

FileOutputStream

FileReader

FileWriter

缓冲流:

BufferedInputStream

BufferedOutputStream

BufferedReader

BufferedWriter

转换流(把字节转换为字符):

InputStreamReader

OutputStreamWriter

内存流(临时存储数据):

ByteArrayInputStream

ByteArrayOutputStream

CharArrayReader

CharArrayWriter

StringReader

StringWriter

顺序流(合并流):

SequenceInputStream

对象流(序列化和反序列化):

ObjectInputStream

ObjectOutputStream

打印流:

PrintStream

PrintWriter

数据流:

DataInputStream

DataOutputStream

管道流:

PipedInputStream

PipedOutputStream

PipedReader

PipedWriter

------------------

File

FIlenameFilter

RandomAccessFile

Files

评论

0条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注