商家名称 |
信用等级 |
购买信息 |
订购本书 |
|
|
Java核心技术 卷2:高级特性(第8版)(英文版) |
|
|
|
Java核心技术 卷2:高级特性(第8版)(英文版) |
|
基本信息·出版社:人民邮电出版社
·页码:1032 页
·出版日期:2009年09月
·ISBN:7115210586/9787115210586
·条形码:9787115210586
·版本:第1版
·装帧:平装
·开本:16
·正文语种:英语
·外文书名:Core Java VolumeⅡ:Advanced Featuers,Eighth Edition
内容简介 《Java核心技术 卷2:高级特性(第8版)(英文版)》内容全面丰富,覆盖了Java技术的所有高级主题,主要包括流与文件、XML、网络、数据库编程、高级Swing、高级AWT、JavaBean构件、安全、分布式对象、脚本、编译与注解处理,还介绍了本地化、国际化以及Java SE 6等内容。《Java核心技术 卷2:高级特性(第8版)(英文版)》讲解深入透彻,在上一版的基础上对JDK 6.0中的新特性进行了重点介绍,并包含大量示例,所有示例代码都对应Java SE 6进行了全面更新。
《Java核心技术 卷2:高级特性(第8版)(英文版)》可帮助读者充分理解Java语言和Java类库的相关特性,主要针对将Java技术运用于实际项目的编程人员。
作者简介 Cay S.Horstmann是Core JavaServer Faces,Second Edition一书的作者之一。Cay是San Jose州立大学计算机科学系的教授,Java的支持者,也是活跃于计算机业界会议的演讲者。
Gary COrnell编写编程技术方面的书籍并教授相关知识已有20多年。是Apress的创始人之一。他编写了许多有关编程技术方面的畅销书。曾获Jolt大奖。还赢得了Visual Basic Magazine Readers Choice大奖。
编辑推荐 《Java核心技术 卷2:高级特性(第8版)(英文版)》是Core Java,Volume//: Advanced Features的最新版本,主要介绍Java SE 6平台的高级用户界面设计和企业特性等内容。书中精心安排的示例程序用于演示最新的编程技术,并针对专业开发者在现实中遇到的问题提供最佳解决方案。
关于Java基础知识的介绍,包括接口与内部类、使用Swjng的GUI编程、异常处理、泛型、集合和并发等内容,可参阅《Java核心技术卷I:基础知识(第8版)》。
目录 1 STREAMS AND FILES
Streams
Reading and Writing Bytes
The Complete Stream Zoo
Combining Stream Filters
Text Input and Output
How to Write Text Output
How to Read Text Input
Saving Objects in Text Format
Character Sets
Reading and Writing Binary Data
Random-Access Files
ZIP Archives
Object Streams and Serialization
Understanding the Object Serialization File Format
Modifying the Default Serialization Mechanism
Serializing Singletons and Typesafe Enumerations
Versioning
Using Serialization for Cloning
File Management
New I/O
Memory-Mapped Files
The Buffer Data Structure
File Locking
Regular Expressions
2 XML
Introducing XML
The Structure of an XML Document
Parsing an XML Document
Validating XML Documents
Document Type Definitions
XML Schema
A Practical Example
Locating Information with XPath
Using Namespaces
Streaming Parsers
Using the SAX Parser
Using the StAX Parser
Generating XML Documents
Writing an XML Document with StAX
XSL Transformations
3 NETWORKING
Connecting to a Server
Socket Timeouts
Internet Addresses
Implementing Servers
Serving Multiple Clients
Half-Close
Interruptible Sockets
Sending E-Mail
Making URL Connections
URLs and URIs
Using a URLConnection to Retrieve Information
Posting Form Data
4 DATABASE PROGRAMMING
The Design of JDBC
JDBC Driver Types
Typical Uses of JDBC
The Structured Query Language
JDBC Configuration
Database URLs
Driver JAR Files
Starting the Database
Registering the Driver Class
Connecting to the Database
Executing SQL Statements
Managing Connections, Statements, and Result Sets
Analyzing SQL Exceptions
Populating a Database
Query Execution
Prepared Statements
Reading and Writing LOBs
SQL Escapes
Multiple Results
Retrieving Autogenerated Keys
Scrollable and Updatable Result Sets
Scrollable Result Sets
Updatable Result Sets
Row Sets
Cached Row Sets
Metadata
Transactions
Save Points
Batch Updates
Advanced SQL Types
Connection Management in Web and Enterprise Applications
Introduction to LDAP
Configuring an LDAP Server
Accessing LDAP Directory Information
5 INTERNATIONALIZATION
Locales
Number Formats
Currencies
Date and Time
Collation
Collation Strength
Decomposition
Message Formatting
Choice Formats
Text Files and Character Sets
Character Encoding of Source Files
Resource Bundles
Locating Resource Bundles
Property Files
Bundle Classes
A Complete Example
6 ADVANCED SWING
Lists
The JList Component
List Models
Inserting and Removing Values
Rendering Values
Tables
A Simple Table 370 Table Models
Working with Rows and Columns
Cell Rendering and Editing
Trees 405 Simple Trees
Node Enumeration
Rendering Nodes
Listening to Tree Events
Custom Tree Models
Text Components
Change Tracking in Text Components
Formatted Input Fields
The JSpinner Component
Displaying HTML with the JEditorPane
Progress Indicators
Progress Bars
Progress Monitors
Monitoring the Progress of Input Streams
Component Organizers
Split Panes
Tabbed Panes
Desktop Panes and Internal Frames
Cascading and Tiling
Vetoing Property Settings
7 ADVANCED AWT
The Rendering Pipeline
Shapes
Using the Shape Classes
Areas
Strokes
Paint
Coordinate Transformations
Clipping
Transparency and Composition
Rendering Hints
Readers and Writers for Images
Obtaining Readers and Writers for Image File Types
Reading and Writing Files with Multiple Images
Image Manipulation
Constructing Raster Images
Filtering Images
Printing
Graphics Printing
Multiple-Page Printing
Print Preview
Print Services
Stream Print Services
Printing Attributes
The Clipboard
Classes and Interfaces for Data Transfer
Transferring Text
The Transferable Interface and Data Flavors
Building an Image Transferable
Transferring Java Objects via the System Clipboard
Using a Local Clipboard to Transfer Object References
Drag and Drop
Data Transfer Support in Swing
Drag Sources
Drop Targets
Platform Integration
Splash Screens
Launching Desktop Applications
The System Tray
8 JAVABEANS COMPONENTS
Why Beans?
The Bean-Writing Process
Using Beans to Build an Application
Packaging Beans in JAR Files
Composing Beans in a Builder Environment
Naming Patterns for Bean Properties and Events
Bean Property Types
Simple Properties
Indexed Properties
Bound Properties
Constrained Properties
BeanInfo Classes
Property Editors
Writing Property Editors
Customizers
Writing a Customizer Class
JavaBeans Persistence
Using JavaBeans Persistence for Arbitrary Data
A Complete Example for JavaBeans Persistence
9 SECURITY
Class Loaders
The Class Loader Hierarchy
Using Class Loaders as Namespaces
Writing Your Own Class Loader
Bytecode Verification
Security Managers and Permissions
Java Platform Security
Security Policy Files
Custom Permissions
Implementation of a Permission Class
User Authentication
JAAS Login Modules
Digital Signatures
Message Digests
Message Signing
The X.
Certificate Format
Verifying a Signature
The Authentication Problem
Certificate Signing
Certificate Requests
Code Signing
JAR File Signing
Software Developer Certificates
Encryption
Symmetric Ciphers
Key Generation
Cipher Streams
Public Key Ciphers
10 DISTRIBUTED OBJECTS
The Roles of Client and Server
Remote Method Calls
Stubs and Parameter Marshalling
The RMI Programming Model
Interfaces and Implementations
The RMI Registry
Deploying the Program
Logging RMI Activity
Parameters and Return Values in Remote Methods
Transferring Remote Objects
Transferring Nonremote Objects
Dynamic Class Loading
Remote References with Multiple Interfaces
Remote Objects and the equals, hashCode, and clone Methods
Remote Object Activation
Web Services and JAX-WS
Using JAX-WS
A Web Service Client
The Amazon E-Commerce Service
11 SCRIPTING, COMPILING, AND ANNOTATION PROCESSING
Scripting for the Java Platform
Getting a Scripting Engine
Script Evaluation and Bindings
Redirecting Input and Output
Calling Scripting Functions and Methods
Compiling a Script
An Example: Scripting GUI Events
The Compiler API
Compiling the Easy Way
Using Compilation Tasks
An Example: Dynamic Java Code Generation
Using Annotations
An Example: Annotating Event Handlers
Annotation Syntax
Standard Annotations
Annotations for Compilation
Annotations for Managing Resources
Meta-Annotations
Source-Level Annotation Processing
Bytecode Engineering
Modifying Bytecodes at Load Time
12 NATIVE METHODS
Calling a C Function from a Java Program
Numeric Parameters and Return Values
Using printf for Formatting Numbers
String Parameters
Accessing Fields
Accessing Instance Fields
Accessing Static Fields
Encoding Signatures
Calling Java Methods
Instance Methods
Static Methods
Constructors
Alternative Method Invocations
Accessing Array Elements
Handling Errors
Using the Invocation API
A Complete Example: Accessing the Windows Registry
Overview of the Windows Registry
A Java Platform Interface for Accessing the Registry
Implementation of Registry Access Functions as Native Methods
Index
……
序言 致读者
本书按照Java SE 6对上一版本进行了完全更新。卷I主要介绍了Java语言的一些关键特性,而本卷主要介绍程序员进行专业软件开发时需要了解的高级主题。因此,与卷I以及本书以前的版本一样,我们仍将其定位于面对将Java技术运用于实际项目的编程人员。
请注意,如果你是经验丰富的程序员,能够灵活运用内部类和泛型等高级语言特性,就没有必要在阅读完卷I的基础上再从本卷获益。不过,本卷会根据适当情况去参考引用卷I的有关内容(当然,我们希望你或者已经购买了卷I),你也可以在任何一本综合介绍1ava平台的书中获取所需的背景知识。
任何一本书都难免会存在一些错误和不妥。我们非常希望读者将在本书中找到的错误和不妥通报给我们。当然,我们更希望只收到一次出现这些问题的报告。为此,我们创建了一个FAQ、bug修正以及应急方案的网站Http://horstmann.com/corejava。可以在bug报告页面(该页面的目的是鼓励读者阅读以前的报告)的末尾处添加bug报告,以便发布bug和问题、给出建议,从而改进本书的未来版本。
本书内容
本书中的章节大部分是相互独立的。你可以研究任何感兴趣的主题,也可以按照任意顺序阅读这些章节。
第1章介绍输入输出处理。在Java中,所有I/O都是通过所谓的“流”来处理的。流使你可以按照统一的方式来处理各种数据源之间的通信,如文件、网络连接或内存块。本章详细介绍了各种读入器和写出器类,它们使得对Unicode的处理更容易;还介绍了在使用对象序列化机制从而使保存和加载对象变得容易而方便时,其背后的原理是什么。最后,讨论了支持高效文件操作的“新I/0”类(它们曾作为最新内容添加到Java SE 1.4中)和正则表达式类库。
文摘 插图: