Pro Java 7 NIO.2 (Paperback)
暫譯: Pro Java 7 NIO.2 (平裝本)

Anghel Leonard

  • 出版商: Apress
  • 出版日期: 2011-12-21
  • 售價: $2,280
  • 貴賓價: 9.5$2,166
  • 語言: 英文
  • 頁數: 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 事件埠機制,以增強可擴展性

NIO.2 是 Java 平台的 JSR 203,作為 OpenJDK 專案在 Alan Bateman 的領導下,成為新的 Java JDK 7 的一個主要特徵。利用這些令人興奮的新發展,與《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 7 有一定經驗的資深 Java 程式設計師以及新接觸 Java 7 的開發者。

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