You are previewing Core Java® Volume II—Advanced Features, Tenth Edition.
O'Reilly logo
Core Java® Volume II—Advanced Features, Tenth Edition

Book Description

This is the Rough Cut version of the printed book.

Fully updated to reflect Java SE 8 language changes, Core Java®, Volume II–Advanced Features, Tenth Edition, is the definitive guide to Java’s most powerful features for enterprise and desktop application development.

Designed for serious programmers, this reliable, unbiased, no-nonsense tutorial illuminates advanced Java language and library features with thoroughly tested code examples. As in previous editions, all code is easy to understand and displays modern best-practice solutions to the real world challenges faced by professional developers.

Volume II quickly brings you up-to-speed on key Java SE 8 features and APIs. All code examples are updated to reflect these enhancements. Complete descriptions of new language and platform features are highlighted and integrated with insightful explanations of advanced Java programming techniques. You’ll learn all you need to build robust production software with 

  • Streams, files, and regular expressions

  • XML

  • Networking

  • Database programming facilities

  • JNDI/LDAP directory integration

  • Internationalization

  • Advanced Swing techniques

  • JavaBeans components

  • Web services

  • Advanced platform security features

  • Annotations

  • Distributed objects

  • Native methods, and more 

  • Table of Contents

    1. Contents
    2. Preface
      1. About This Book
      2. Conventions
    3. Chapter 1: The Java SE 8 Stream Library
      1. 1.1 From Iterating to Stream Operations
      2. 1.2 Stream Creation
      3. 1.3 The filter, map, and flatMap Methods
      4. 1.4 Extracting Substreams and Combining Streams
      5. 1.5 Other Stream Transformations
      6. 1.6 Simple Reductions
      7. 1.7 The Optional Type
      8. 1.8 Collecting Results
      9. 1.9 Collecting into Maps
      10. 1.10 Grouping and Partitioning
      11. 1.11 Downstream Collectors
      12. 1.12 Reduction Operations
      13. 1.13 Primitive Type Streams
      14. 1.14 Parallel Streams
    4. Chapter 2: Input and Output
      1. 2.1 Input/Output Streams
      2. 2.2 Text Input and Output
      3. 2.3 Reading and Writing Binary Data
      4. 2.4 Object Input/Output Streams and Serialization
      5. 2.5 Working with Files
      6. 2.6 Memory-Mapped Files
      7. 2.7 Regular Expressions
    5. Chapter 3: XML
      1. 3.1 Introducing XML
      2. 3.2 Parsing an XML Document
      3. 3.3 Validating XML Documents
      4. 3.4 Locating Information with XPath
      5. 3.5 Using Namespaces
      6. 3.6 Streaming Parsers
      7. 3.7 Generating XML Documents
      8. 3.8 XSL Transformations
    6. Chapter 4: Networking
      1. 4.1 Connecting to a Server
      2. 4.2 Implementing Servers
      3. 4.3 Interruptible Sockets
      4. 4.4 Getting Web Data
      5. 4.5 Sending E-Mail
    7. Chapter 5: Database Programming
      1. 5.1 The Design of JDBC
      2. 5.2 The Structured Query Language
      3. 5.3 JDBC Configuration
      4. 5.4 Executing SQL Statements
      5. 5.5 Query Execution
      6. 5.6 Scrollable and Updatable Result Sets
      7. 5.7 Row Sets
      8. 5.8 Metadata
      9. 5.9 Transactions
      10. 5.10 Connection Management in Web and Enterprise Applications
    8. Chapter 6: The Date and Time API
      1. 6.1 The Time Line
      2. 6.2 Local Dates
      3. 6.3 Date Adjusters
      4. 6.4 Local Time
      5. 6.5 Zoned Time
      6. 6.6 Formatting and Parsing
      7. 6.7 Interoperating with Legacy Code
    9. Chapter 7: Internationalization
      1. 7.1 Locales
      2. 7.2 Number Formats
      3. 7.4 Date and Time
      4. 7.5 Collation and Normalization
      5. 7.6 Message Formatting
      6. 7.7 Text Input and Output
      7. 7.8 Resource Bundles
      8. 7.9 A Complete Example
    10. Chapter 8: Scripting, Compiling, and Annotation Processing
      1. 8.1 Scripting for the Java Platform
      2. 8.2 The Compiler API
      3. 8.3 Using Annotations
      4. 8.4 Annotation Syntax
      5. 8.5 Standard Annotations
      6. 8.6 Source-Level Annotation Processing
      7. 8.7 Bytecode Engineering
    11. Chapter 9: Security
      1. 9.1 Class Loaders
      2. 9.2 Security Managers and Permissions
      3. 9.3 User Authentication
      4. 9.4 Digital Signatures
      5. 9.5 Encryption
    12. Chapter 10: Advanced Swing
      1. 10.1 Lists
      2. 10.2 Tables
      3. 10.3 Trees
      4. 10.4 Text Components
      5. 10.5 Progress Indicators
      6. 10.6 Component Organizers and Decorators
    13. Chapter 11: Advanced AWT
      1. 11.1 The Rendering Pipeline
      2. 11.2 Shapes
      3. 11.3 Areas
      4. 11.4 Strokes
      5. 11.5 Paint
      6. 11.6 Coordinate Transformations
      7. 11.7 Clipping
      8. 11.8 Transparency and Composition
      9. 11.9 Rendering Hints
      10. 11.10 Readers and Writers for Images
      11. 11.11 Image Manipulation
      12. 11.12 Printing
      13. 11.13 The Clipboard
      14. 11.14 Drag and Drop
      15. 11.15 Platform Integration
    14. Chapter 12: Native Methods
      1. 12.1 Calling a C Function from a Java Program
      2. 12.2 Numeric Parameters and Return Values
      3. 12.3 String Parameters
      4. 12.4 Accessing Fields
      5. 12.5 Encoding Signatures
      6. 12.6 Calling Java Methods
      7. 12.7 Accessing Array Elements
      8. 12.8 Handling Errors
      9. 12.9 Using the Invocation API
      10. 12.10 A Complete Example: Accessing the Windows Registry