书籍 Java Nio的封面

Java Nio

Ron Hitchens

出版时间

2002-08-15

ISBN

9780596002886

评分

★★★★★
书籍介绍
Many serious Java programmers, especially enterprise Java programmers, consider the new I/O API--called NIO for New Input/Output--the most important feature in the 1.4 version of the Java 2 Standard Edition. The NIO package includes many things that have been missing from previous editions of Java that are critical to writing high-performance, large-scale applications: improvements in the areas of buffer management, scalable network and file I/O, character-set support, and regular expression matching. Most of all, it boosts performance and speed dramatically. Java NIO explores the new I/O capabilities of version 1.4 in detail and shows you how to put these features to work to greatly improve the efficiency of the Java code you write. This compact volume examines the typical challenges that Java programmers face with I/O and shows you how to take advantage of the capabilities of the new I/O features. You?ll learn how to put these tools to work using examples of common, real-world I/O problems and see how the new features have a direct impact on responsiveness, scalability, and reliability. The book includes: * A rundown of the new features in NIO * Basic and advanced I/O Concepts * Binary I/O and the new buffer classes * Memory mapped files and file locking * Character I/O: encoding, decoding and transforming character data * Regular Expressions and the new java.util.regex package * Muliplexing with java.nio Because the NIO APIs supplement the I/O features of version 1.3, rather than replace them, you'll also learn when to use new APIs and when the older 1.3 I/O APIs are better suited to your particular application. Java NIO is for any Java programmer who is interested in learning how to boost I/O performance, but if you're developing applications where performance is critical, such as game computing or large-scale enterprise applications, you'll want to give this book a permanent spot on your bookshelf. With the NIO APIs, Java no longer takes a backseat to any language when it comes to performance. Java NIO will help you realize the benefits of these exciting new features.
用户评论
重点介绍了NIO的Buffer、Channel和Selector,从整体上有了更全面的了解,但是个别细节上,还可以再更深入的探讨。
比较完整的介绍NIO,说明了各个组件的关系、使用中要注意的细节。有了体系的说明后理解复杂就简单了。
不是特别容易懂,但至少了解了NIO Buffer Channel Selector
对IO模型的讲解还是很详细、通俗易懂的。就是英文版的用词有点"高深",(有很多英文专业词隐喻)。是我读过的英文版技术书籍里面算是 "较难的"一本了。
好吧,我读的是中文版的,感觉各种罗嗦,加上满篇的贴代码,,,
这本书的翻译有够垃圾的,不过nio也没有什么太多的正式出版物可供参考。
把NIO讲的很透彻,尤其是对于没学过操作系统的我,selector有点难懂,需要再琢磨下
读了中文版本前四章, 基本是API, 不过对入门来说还是不错的选择 最后两章讲正则和字符集没怎么看
大部分都在写相关的API,掺杂部分实现原理的讲解,可以作为相关主题的入门读物
全书质量不高,给我最大的感触是“原来外国人也有写烂书的”。一、本书算不上理论书。整本书基本上是API手册的堆叠,甚至我怀疑作者是直接照着官方API手册写的,有的地方逻辑都不通顺。除了API堆叠,很少深入讲设计的原理和思想。二、本书算不上实战书。书中代码示例实在是过于粗糙简陋,基本上是API手册中的入门范例。三、翻译问题。我甚至怀疑这个译者是不是计算机专业的,居然能把runtime 翻译成“运行时间”,大家都叫“运行时”吧。实在想读最好读英文版。四、作者较差的写作功底再加上译者撇脚的翻译水平,让人读起来困惑又痛苦。五、建议。这本书只适合一两天速读,简单了解一下buffer、channel、select的概念,不要深入细节。但是学习概念,其实有更好的书。
Z-Library