失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > java核心技术影印版_Java核心技术 卷II:高级特性(第8版)(英文影印版)

java核心技术影印版_Java核心技术 卷II:高级特性(第8版)(英文影印版)

时间:2022-01-23 21:45:18

相关推荐

java核心技术影印版_Java核心技术 卷II:高级特性(第8版)(英文影印版)

1STREAMS AND FILES .1

Streams2

Reading and Writing Bytes2

The Complete Stream Zoo4

Combining Stream Filters8

Text Input and Output11

How to Write Text Output12

How to Read Text Input14

Saving Objects in Text Format14

Character Sets19

Reading and Writing Binary Data23

Random-Access Files26

ZIP Archives32

Object Streams and Serialization39

Understanding the Object Serialization File Format46

Modifying the Default Serialization Mechanism51

Serializing Singletons and Typesafe Enumerations53

Versioning54

Using Serialization for Cloning56

File Management59

New I/O65

Memory-Mapped Files65

The Buffer Data Structure72

File Locking74

Regular Expressions75

2XML87

Introducing XML88

The Structure of an XML Document90

Parsing an XML Document93

Validating XML Documents105

Document Type Definitions106

XML Schema112

A Practical Example115

Locating Information with XPath129

Using Namespaces136

Streaming Parsers138

Using the SAX Parser138

Using the StAX Parser143

Generating XML Documents146

Writing an XML Document with StAX150

XSL Transformations157

3NETWORKING169

Connecting to a Server170

Socket Timeouts174

Internet Addresses175

Implementing Servers177

Serving Multiple Clients180

Half-Close184

Interruptible Sockets184

Sending E-Mail191

Making URL Connections196

URLs and URIs196

Using a URLConnection to Retrieve Information198

Posting Form Data207

4DATABASE PROGRAMMING217

The Design of JDBC218

JDBC Driver Types219

Typical Uses of JDBC220

The Structured Query Language222

JDBC Configuration227

Database URLs227

Driver JAR Files228

Starting the Database228

Registering the Driver Class229

Connecting to the Database229

Executing SQL Statements232

Managing Connections, Statements, and Result Sets235

Analyzing SQL Exceptions236

Populating a Database238

Query Execution242

Prepared Statements242

Reading and Writing LOBs250

SQL Escapes252

Multiple Results253

Retrieving Autogenerated Keys254

Scrollable and Updatable Result Sets254

Scrollable Result Sets254

Updatable Result Sets256

Row Sets260

Cached Row Sets261

Metadata263

Transactions273

Save Points274

Batch Updates274

Advanced SQL Types276

Connection Management in Web and Enterprise Applications278

Introduction to LDAP279

Configuring an LDAP Server280

Accessing LDAP Directory Information284

5INTERNATIONALIZATION297

Locales298

Number Formats303

Currencies309

Date and Time310

Collation318

Collation Strength318

Decomposition319

Message Formatting324

Choice Formats326

Text Files and Character Sets328

Character Encoding of Source Files328

Resource Bundles329

Locating Resource Bundles330

Property Files331

Bundle Classes331

A Complete Example333

6ADVANCED SWING351

Lists352

The JList Component352

List Models358

Inserting and Removing Values363

Rendering Values365

Tables370

A Simple Table 370 Table Models374

Working with Rows and Columns378

Cell Rendering and Editing392

Trees 405 Simple Trees406

Node Enumeration422

Rendering Nodes424

Listening to Tree Events427

Custom Tree Models434

Text Components442

Change Tracking in Text Components ..443

Formatted Input Fields447

The JSpinner Component463

Displaying HTML with the JEditorPane472

Progress Indicators479

Progress Bars479

Progress Monitors483

Monitoring the Progress of Input Streams487

Component Organizers492

Split Panes492

Tabbed Panes496

Desktop Panes and Internal Frames502

Cascading and Tiling505

Vetoing Property Settings509

7ADVANCED AWT521

The Rendering Pipeline522

Shapes524

Using the Shape Classes527

Areas540

Strokes542

Paint550

Coordinate Transformations552

Clipping557

Transparency and Composition559

Rendering Hints568

Readers and Writers for Images575

Obtaining Readers and Writers for Image File Types575

Reading and Writing Files with Multiple Images576

Image Manipulation585

Constructing Raster Images585

Filtering Images592

Printing601

Graphics Printing602

Multiple-Page Printing611

Print Preview613

Print Services623

Stream Print Services627

Printing Attributes627

The Clipboard635

Classes and Interfaces for Data Transfer636

Transferring Text636

The Transferable Interface and Data Flavors640

Building an Image Transferable642

Transferring Java Objects via the System Clipboard647

Using a Local Clipboard to Transfer Object References652

Drag and Drop652

Data Transfer Support in Swing654

Drag Sources658

Drop Targets660

Platform Integration668

Splash Screens668

Launching Desktop Applications673

The System Tray679

8JAVABEANS COMPONENTS685

Why Beans?686

The Bean-Writing Process688

Using Beans to Build an Application690

Packaging Beans in JAR Files691

Composing Beans in a Builder Environment692

Naming Patterns for Bean Properties and Events698

Bean Property Types701

Simple Properties701

Indexed Properties701

Bound Properties702

Constrained Properties703

BeanInfo Classes710

Property Editors713

Writing Property Editors716

Customizers723

Writing a Customizer Class725

JavaBeans Persistence732

Using JavaBeans Persistence for Arbitrary Data736

A Complete Example for JavaBeans Persistence742

9SECURITY755

Class Loaders756

The Class Loader Hierarchy757

Using Class Loaders as Namespaces759

Writing Your Own Class Loader761

Bytecode Verification767

Security Managers and Permissions771

Java Platform Security772

Security Policy Files776

Custom Permissions783

Implementation of a Permission Class783

User Authentication790

JAAS Login Modules795

Digital Signatures805

Message Digests805

Message Signing812

The X.509

Certificate Format814

Verifying a Signature814

The Authentication Problem818

Certificate Signing820

Certificate Requests821

Code Signing822

JAR File Signing822

Software Developer Certificates827

Encryption828

Symmetric Ciphers828

Key Generation830

Cipher Streams834

Public Key Ciphers835

10DISTRIBUTED OBJECTS841

The Roles of Client and Server842

Remote Method Calls845

Stubs and Parameter Marshalling845

The RMI Programming Model846

Interfaces and Implementations846

The RMI Registry848

Deploying the Program852

Logging RMI Activity855

Parameters and Return Values in Remote Methods856

Transferring Remote Objects857

Transferring Nonremote Objects857

Dynamic Class Loading860

Remote References with Multiple Interfaces864

Remote Objects and the equals, hashCode, and clone Methods865

Remote Object Activation865

Web Services and JAX-WS871

Using JAX-WS871

A Web Service Client874

The Amazon E-Commerce Service877

11SCRIPTING, COMPILING, AND ANNOTATION PROCESSING883

Scripting for the Java Platform884

Getting a Scripting Engine884

Script Evaluation and Bindings885

Redirecting Input and Output887

Calling Scripting Functions and Methods888

Compiling a Script889

An Example: Scripting GUI Events890

The Compiler API895

Compiling the Easy Way895

Using Compilation Tasks895

An Example: Dynamic Java Code Generation900

Using Annotations905

An Example: Annotating Event Handlers906

Annotation Syntax911

Standard Annotations915

Annotations for Compilation916

Annotations for Managing Resources917

Meta-Annotations917

Source-Level Annotation Processing919

Bytecode Engineering926

Modifying Bytecodes at Load Time932

12NATIVE METHODS935

Calling a C Function from a Java Program936

Numeric Parameters and Return Values942

Using printf for Formatting Numbers942

String Parameters944

Accessing Fields950

Accessing Instance Fields950

Accessing Static Fields953

Encoding Signatures954

Calling Java Methods956

Instance Methods956

Static Methods957

Constructors958

Alternative Method Invocations958

Accessing Array Elements962

Handling Errors966

Using the Invocation API970

A Complete Example: Accessing the Windows Registry975

Overview of the Windows Registry975

A Java Platform Interface for Accessing the Registry 977

Implementation of Registry Access Functions as Native Methods977

Index ...991

如果觉得《java核心技术影印版_Java核心技术 卷II:高级特性(第8版)(英文影印版)》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。