Jakarta Commons經典實例

Jakarta Commons經典實例

《Jakarta Commons經典實例》是一本(美國)奧布賴恩編制,由東南大學出版社在2005年6月1日出版的書籍。

圖書信息

出版社: 東南大學出版社; 第1版 (2005年6月1日)

平裝: 377頁

開本: 16開

ISBN: 7564100486, 9787564100483

條形碼: 9787564100483

尺寸: 23.3 x 17.8 x 1.8 cm

重量: 621 g

作者簡介

作者:(美國)奧布賴恩

內容簡介

長期以來,Java一直承諾向開發人員提供可重用、模組化和可移植的特性。要實現上層的軟體結構開發者可對已有的框架和組件進行擴展,或按需定製,而無需從最底層的細節開始。一個典型的例子就是全球資訊網聯盟(W3C)定義的DOM接口。應用程式開發人員很少會去編寫一個自己的XML解析器,但他們常常編寫自己的組件,而這些組件的功能在一些自由軟體庫中已經實現了,只是開發者們不知道這些開源組件的存在罷了。本書採用O'Reilly經典實例系列叢書中慣用的問題-求解模式概述了可供使用的軟體庫以解決上述問題。這裡僅列出部分本書所涵蓋的Commons項目和組件:

* 對核心Java語言的擴展,包括字元串和日期操作、字元串編碼和參數驗證

* 對XML的支持,從解析、文檔生成到使用搜尋引擎索引XML文檔所需的XPath

* 模板化框架使你能夠超越JSP的基本功能,不僅Web頁面,甚至XML檔案或者電子郵件都能夠進行模板化

* 使用FTP、SMTP、POP、NNTP、特別是HTTP和WebDAV等功能所需的工具

* 使用Functor進行編程的新方法,包括使用predicate、closure、transformer和functor(替換控制結構,如for和while)

* 新的collection和collection工具,包括LRU Map、predicated collection、適用於Java 1.4的typed collection、filtering iterator和set操作

* 對JavaBean的擴展,從bean到map的轉換至序列化bean為XML字元串

* 提供對矩陣、複數、線性回歸支持的新數學工具庫

* 對Jakarta Commons組件和Maven、Ant協同使用的指導

* 日誌、編碼和對象池(object pools)

僅僅了解一兩個有用的工具類是不夠的,您必須意識到做出不同選擇的可能,並對所選技術的全景有所了解。如果您希望能夠擺脫令人手忙腳亂的編程方法並熟練掌握Java這門語言,《Jakarta Commons經典實例》正是您所需要的工具。

目錄

Preface

1. Supplements to the Java 2 Platform

1.1 Obtaining Commons Lang

1.2 Joining the Commons-User Mailing List

1.3 Getting the Commons Lang Source Code

1.4 Automating the Generation of toString()Content

1.5 Customizing Generated toString()Content

1.6 Automating hashCode()and equals()

1.7 Automating compareTo()

1.8 Printing an Array

1.9 Cloning and Reversing Arrays

1.10 Transforming Between Object Arrays and Primitive Arrays

1.11 Finding Items in an Array

1.12 Creating a Map from a Multidimensional Array

1.13 Formatting Dates

1.14 Rounding Date Objects

1.15 Truncating Date Objects

1.16 Creating an Enum

1.17 Generating Unique Numeric Identifiers

1.18 Validation of Method Parameters

1.19 Measuring Time

2. Manipulating Text

2.1 Setting Up StringUtils and WordUtils

2.2 Checking for an Empty String

2.3 Abbreviating Strings

2.4 Splitting a String

2.5 Finding Nested Strings

2.6 Stripping and Trimming a String

2.7 Chomping a String

2.8 Creating an Emphasized Header

2.9 Reversing a String

2.10 Wrapping Words

2.11 Testing the Contents of a String

2.12 Measuring the Frequency of a String

2.13 Parsing Formatted Strings

2.14 Calculating String Difference

2.15 Using Commons Codec

2.16 Getting the Commons Codec Source Code

2.17 Calculating Soundex

3. JavaBeans

3.1 Representing Beans Graphically

3.2 Obtaining Commons BeanUtils

3.3 Getting the Commons BeanUtils Source Code

3.4 Accessing Simple Bean Properties

3.5 Accessing Nested Bean Properties

3.6 Accessing Indexed Bean Properties

3.7 Accessing Mapped Bean Properties

3.8 Accessing a Simple,Nested,Indexed,and Mapped Bean Property

3.9 Determining the Type of a Bean Property

3.10 Comparing Beans

3.11 Copying Bean Properties

3.12 Cloning a Bean

3.13 Setting a Bean Property

3.14 Testing Property Access

3.15 Validating Beans with Predicates

3.16 Creating a Map of Bean Properties

3.17 Wrapping a Bean with a Map

3.18 Creating a Dynamic Bean

3.19 Getting and Setting Properties as Strings

4. Functors

5. Collections

6. XML

7. Application Infrastructure

8. Math

9. Templating

10. I/O and Networking

11. HTTP and WebDAV

12. Searching and Filtering

Index

相關詞條

相關搜尋

熱門詞條

聯絡我們