Java核心技术 卷II:高级特性

副标题:无

作   者:[美]凯 S.霍斯特曼(Cay S. Horstmann),加里·康奈尔(Gary Cornell)著

分类号:

ISBN:9787115380388

微信扫一扫,移动浏览光盘

简介

《Java核心技术 卷II:高级特性(第9版 英文版)》是Java技术权威指南,全面覆盖Java技术的高级主题,包括输入输出流、XML、网络API、数据库编程、高级Swing、Java 2D API、JavaBean构件、安全、分布式对象、脚本、编译与注解处理等,同时涉及本地化、国际化以及Java SE 7的内容。本书对Java技术的阐述精确到位,叙述方式深入浅出,并包含大量程序示例,让读者充分理解Java语言以及Java类库的相关高级特性。本书适合想将Java应用于实际项目的软件开发人员、高等院校教师和学生参考阅读。

目录

目录
Chapter 1: Streams and Files 1
1.1 Streams 2
1.1.1 Reading and Writing Bytes 2
1.1.2 The Complete Stream Zoo . 4
1.1.3 Combining Stream Filters . 9
1.2 Text Input and Output . 13
1.2.1 How to Write Text Output . 13
1.2.2 How to Read Text Input . 16
1.2.3 Saving Objects in Text Format . 16
1.2.4 Character Sets . 20
1.3 Reading and Writing Binary Data 25
1.3.1 Random-Access Files 28
1.4 ZIP Archives 33
1.5 Object Streams and Serialization 36
1.5.1 Understanding the Object Serialization File Format 42
1.5.2 Modifying the Default Serialization Mechanism 48
1.5.3 Serializing Singletons and Typesafe Enumerations . 50
1.5.4 Versioning . 52
1.5.5 Using Serialization for Cloning . 54
1.6 Working with Files 57
1.6.1 Paths 57
1.6.2 Reading and Writing Files 60
1.6.3 Copying, Moving, and Deleting Files . 61
1.6.4 Creating Files and Directories . 62
1.6.5 Getting File Information . 63
1.6.6 Iterating over the Files in a Directory . 64
1.6.7 ZIP File Systems . 67
1.7 Memory-Mapped Files . 68
1.7.1 The Buffer Data Structure . 77
1.7.2 File Locking 79
1.8 Regular Expressions 81
Chapter 2: XML . 93
2.1 Introducing XML . 94
2.1.1 The Structure of an XML Document . 96
2.2 Parsing an XML Document 99
2.3 Validating XML Documents 113
2.3.1 Document Type Definitions . 114
2.3.2 XML Schema . 122
2.3.3 A Practical Example 125
2.4 Locating Information with XPath . 140
2.5 Using Namespaces 147
2.6 Streaming Parsers 150
2.6.1 Using the SAX Parser 150
2.6.2 Using the StAX Parser . 156
2.7 Generating XML Documents . 159
2.7.1 Documents without Namespaces 159
2.7.2 Documents with Namespaces . 160
2.7.3 Writing Documents . 161
2.7.4 An Example: Generating an SVG File 161
2.7.5 Writing an XML Document with StAX 164
2.8 XSL Transformations 173
Chapter 3: Networking . 185
3.1 Connecting to a Server . 185
3.1.1 Socket Timeouts . 190
3.1.2 Internet Addresses . 192
3.2 Implementing Servers 194
3.2.1 Serving Multiple Clients . 197
3.2.2 Half-Close . 201
3.3 Interruptible Sockets . 202
3.4 Getting Web Data 210
3.4.1 URLs and URIs . 210
3.4.2 Using a URLConnection to Retrieve Information . 212
3.4.3 Posting Form Data . 222
3.5 Sending E-Mail 230
Chapter 4: Database Programming 235
4.1 The Design of JDBC 236
4.1.1 JDBC Driver Types 236
4.1.2 Typical Uses of JDBC 238
4.2 The Structured Query Language 239
4.3 JDBC Configuration 245
4.3.1 Database URLs . 246
4.3.2 Driver JAR Files . 246
4.3.3 Starting the Database 247
4.3.4 Registering the Driver Class 248
4.3.5 Connecting to the Database . 249
4.4 Executing SQL Statements . 252
4.4.1 Managing Connections, Statements, and Result Sets . 255
4.4.2 Analyzing SQL Exceptions . 256
4.4.3 Populating a Database 258
4.5 Query Execution 262
4.5.1 Prepared Statements . 263
4.5.2 Reading and Writing LOBs 269
4.5.3 SQL Escapes . 271
4.5.4 Multiple Results . 272
4.5.5 Retrieving Autogenerated Keys 273
4.6 Scrollable and Updatable Result Sets . 274
4.6.1 Scrollable Result Sets . 274
4.6.2 Updatable Result Sets . 277
4.7 Row Sets . 281
4.7.1 Constructing Row Sets 282
4.7.2 Cached Row Sets 282
4.8 Metadata . 286
4.9 Transactions . 296
4.9.1 Save Points 297
4.9.2 Batch Updates 298
4.9.3 Advanced SQL Types . 300
4.10 Connection Management in Web and Enterprise Applications . 302
Chapter 5: Internationalization 305
5.1 Locales . 306
5.2 Number Formats . 311
5.2.1 Currencies . 318
5.3 Date and Time 319
5.4 Collation . 328
5.4.1 Collation Strength 329
5.4.2 Decomposition . 329
5.5 Message Formatting 336
5.5.1 Choice Formats 338
5.6 Text Files and Character Sets . 340
5.6.1 Character Encoding of Source Files 340
5.7 Resource Bundles 341
5.7.1 Locating Resource Bundles 342
5.7.2 Property Files . 343
5.7.3 Bundle Classes . 344
5.8 A Complete Example 346
Chapter 6: Advanced Swing363

已确认勘误

次印刷

页码 勘误内容 提交人 修订印次

Java核心技术 卷II:高级特性
    • 名称
    • 类型
    • 大小

    光盘服务联系方式: 020-38250260    客服QQ:4006604884

    意见反馈

    14:15

    关闭

    云图客服:

    尊敬的用户,您好!您有任何提议或者建议都可以在此提出来,我们会谦虚地接受任何意见。

    或者您是想咨询:

    用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问

    Video Player
    ×
    Audio Player
    ×
    pdf Player
    ×
    Current View

    看过该图书的还喜欢

    some pictures

    解忧杂货店

    东野圭吾 (作者), 李盈春 (译者)

    loading icon