代码改变世界

java io读书笔记(1)综述

2013-06-16 16:15  很大很老实  阅读(257)  评论(0编辑  收藏  举报

学习,是要持之以恒的,再读一本书,坚持。

Java™ I/O, 2nd Edition
By Elliotte Rusty Harold
...............................................
Publisher: O'Reilly
Pub Date: May 2006
Print ISBN-10: 0-596-52750-0
Print ISBN-13: 978-0-59-652750-1
Pages: 726

 

所有的java的io工具,都是构建在streams基础上的,stream提供了一种简单的方式,去读写各种类型的数据,java提供了各种stream类型供操作。

笼统的来说,streams可以分成四大类:

input streams and output streams, for reading and writing binary data;

readers and writers, for reading and writing textual (character) data.

可是,更进一步说,有一些特殊的类,比如:

CipherInputStream:读取加密数据;

ZipOutputStream:自动压缩数据;

等,是我们不常用的。

同时,本书还会介绍,如何更高效的使用streams等。