- 3
- 0
- 约5.41千字
- 约 20页
- 2018-01-06 发布于河南
- 举报
Java_自学课件-_二进制IO
YANGLIN@BNUITC Java程序设计 第18章 二进制I/O 学习目标 理解输入和输出流 理解字节流和字符流 掌握使用文件流读写文件 掌握缓冲流 了解数据流 掌握对象流和对象序列化 了解RandomAccessFile 输入输出 java.io包以流(stream)定义输入/输出。 java.io包中的流主要分为 字节流:以8位字节形式读写(InputStream/OutputStream) 字符流:以16位字符形式读写(Reader/Writer)。 信息源 程序 (读) 或Reader 目的地 程序 (写) InputStream OutputStream 或Writer open a stream while more information{ read information } close the stream open a stream while more information{ write information } close the stream 字节流 InputStream FileInputStream PipedInputStream FilterInputStream ByteArrayInputStream SequenceInputStream DataInputStream BufferedInputS
原创力文档

文档评论(0)