Pro Java 7 NIO.2 (Paperback)

Anghel Leonard

  • 出版商: Apress
  • 出版日期: 2011-12-21
  • 售價: $2,190
  • 貴賓價: 9.5$2,081
  • 語言: 英文
  • 頁數: 300
  • 裝訂: Paperback
  • ISBN: 1430240113
  • ISBN-13: 9781430240112
  • 相關分類: Java 程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Pro Java 7 NIO.2 addresses the three primary elements that offer new input/output (I/O) APIs in Java 7, giving you the skills to write robust, scalable Java applications:

  • An extensive file I/O API system addresses feature requests that developers have sought since the inception of the JDK
  • A socket channel API addresses multicasting, socket binding associated with channels, and related issues
  • An asynchronous I/O API enables mapping to I/O facilities, completion ports, and various I/O event port mechanisms to enhance scalability

NIO.2 for the Java platform, known as JSR 203, is a major feature of the new Java JDK 7 under the leadership of Alan Bateman as an OpenJDK project. Take advantage of these exciting new developments with Pro Java 7 NIO.2.

What you’ll learn

  • How to carry out Path class operations
  • How to get/set file metadata through the java.nio file attribute API (including POSIX)
  • How to manage symbolic and hard links (including create, delete, and find target)
  • How to deal with files and directories through the new java.nio.file.Files API
  • How to use the FileVisitor API to develop file recursive operations 
  • How to explore the Watch Service API and file change notification
  • How to use the new SeekableByteChannel API for Random Access File
  • How to develop blocking/non-blocking socket-based applications
  • How to explore the jewel of NIO.2: the Asynchronous Channel API
  • How to use the Zip File System Provider and write a custom file system provider 
  • How to refactor java.io.File code

Who this book is for

This book is for experienced Java programmers new to Java 7 and those with some experience with Java 7.

Table of Contents

  1. Working with the Path Class
  2. Metadate File Attributes 
  3. Symbolic Links
  4. Files and Directories
  5. The FileVisitor Class: Recursive Operations
  6. Watch Service API
  7. Two Security Models
  8. SPI Package
  9. Mapping java.io.file Functionality to java.nio.file
  10. General Methods

商品描述(中文翻譯)

《Pro Java 7 NIO.2》探討了Java 7中提供新的輸入/輸出(I/O)API的三個主要元素,讓您具備撰寫強大且可擴展的Java應用程式的技能:

- 一個廣泛的文件I/O API系統,解決了自JDK成立以來開發人員一直在尋求的功能需求。
- 一個套接字通道API,解決了多播、與通道相關的套接字綁定以及相關問題。
- 一個非同步I/O API,使映射到I/O設施、完成端口和各種I/O事件端口機制以增強可擴展性成為可能。

Java平台的NIO.2,也被稱為JSR 203,是新的Java JDK 7的一個重要功能,由Alan Bateman在OpenJDK項目的領導下進行開發。藉助《Pro Java 7 NIO.2》,您可以充分利用這些令人興奮的新發展。

您將學到以下內容:

- 如何執行Path類操作。
- 如何通過java.nio文件屬性API(包括POSIX)獲取/設置文件元數據。
- 如何管理符號連結和硬連結(包括創建、刪除和查找目標)。
- 如何通過新的java.nio.file.Files API處理文件和目錄。
- 如何使用FileVisitor API開發文件遞歸操作。
- 如何探索Watch Service API和文件更改通知。
- 如何使用新的SeekableByteChannel API進行隨機訪問文件。
- 如何開發阻塞/非阻塞基於套接字的應用程式。
- 如何探索NIO.2的寶石:非同步通道API。
- 如何使用Zip文件系統提供者並編寫自定義文件系統提供者。
- 如何重構java.io.File代碼。

本書適合有經驗的Java程式設計師,對Java 7新手以及有一些Java 7經驗的讀者。

目錄如下:
1. 使用Path類
2. 元數據文件屬性
3. 符號連結
4. 文件和目錄
5. FileVisitor類:遞歸操作
6. Watch Service API
7. 兩種安全模型
8. SPI套件
9. 將java.io.file功能映射到java.nio.file
10. 通用方法