Java Nio

Ron Hitchens

  • 出版商: O'Reilly
  • 出版日期: 2002-10-01
  • 售價: $1,560
  • 貴賓價: 9.5$1,482
  • 語言: 英文
  • 頁數: 312
  • 裝訂: Paperback
  • ISBN: 0596002882
  • ISBN-13: 9780596002886
  • 相關分類: Java 程式語言
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

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.

商品描述(中文翻譯)

許多嚴肅的Java程式設計師,尤其是企業級Java程式設計師,認為新的I/O API(稱為NIO,即新輸入/輸出)是Java 2標準版1.4版本中最重要的功能。NIO套件包含了許多在先前版本的Java中缺少的對於撰寫高效能、大規模應用程式至關重要的功能:在緩衝區管理、可擴展的網路和檔案I/O、字元集支援以及正規表示式匹配等方面的改進。最重要的是,它大幅提升了效能和速度。《Java NIO》詳細探討了1.4版本的新I/O功能,並向您展示如何運用這些功能來大幅提升您所撰寫的Java程式碼的效率。這本簡潔的書籍探討了Java程式設計師在I/O方面面臨的典型挑戰,並向您展示如何利用新的I/O功能的能力。您將學習如何運用這些工具,並通過常見的實際I/O問題的例子,看到新功能如何直接影響響應性、可擴展性和可靠性。本書包括以下內容:NIO中的新功能概述、基本和高級I/O概念、二進制I/O和新的緩衝區類別、內存映射文件和文件鎖定、字元I/O:編碼、解碼和轉換字元資料、正規表示式和新的java.util.regex套件、以及使用java.nio進行多路復用。由於NIO API是對1.3版本I/O功能的補充,而不是取代,您還將學習何時使用新的API以及何時較適合您特定應用程式的舊的1.3 I/O API。《Java NIO》適用於任何有興趣了解如何提升I/O效能的Java程式設計師,但如果您正在開發對效能至關重要的應用程式,例如遊戲運算或大規模企業應用程式,您將希望將本書永久放在您的書架上。有了NIO API,Java在效能方面不再落後於任何語言。《Java NIO》將幫助您實現這些令人興奮的新功能的好處。