You are previewing Core Java™ 2 Volume II - Advanced Features, Seventh Edition.
O'Reilly logo
Core Java™ 2 Volume II - Advanced Features, Seventh Edition

Book Description

A new edition of this title is available, ISBN-10:  0132354799 ISBN-13: 9780132354790

Completely revised and up-to-date coverage of

  • Multithreading–including the java.util.concurrent library, locks, condition objects, futures, thread pools, thread-safe collections, threads and Swing

  • Collection classes–collections framework, concrete collections, and generic utility methods

  • Annotations and metadata–using annotations to automate programming tasks, JDK™ 5.0 standard annotations, the apt tool for source-level annotation processing, and bytecode engineering

  • Advanced Swing and AWT–lists, trees, tables, and other advanced components; image processing and printing

  • JavaBeans™–including property editors, customizers, and long-term persistence

  • XML–DOM and SAX parsers, XPath, and XSL transformations

  • The seventh edition of Core Java™ 2, Volume II, covers advanced user-interface programming and the enterprise features of the Java 2 Platform, Standard Edition (J2SE™). Like Volume I (which covers the most important language and library features), this book has been completely updated and revised for J2SE 5.0. All of the sample programs have been updated and carefully crafted to illustrate practical solutions to the type of real-world problems professional developers encounter.

    Volume II includes new sections on annotations and other J2SE 5.0 enhancements, along with complete coverage of

  • Multithreading

  • Distributed objects

  • Databases

  • JNDI and LDAP

  • Advanced GUI components

  • Native methods

  • XML processing

  • Network programming

  • Collection classes

  • Advanced graphics

  • Internationalization

  • JavaBeans

  • Annotations



  •  

    Table of Contents

    1. Copyright
    2. List of Code Examples
    3. Preface
    4. Acknowledgments
    5. Multithreading
      1. What Are Threads?
      2. Interrupting Threads
      3. Thread States
      4. Thread Properties
      5. Synchronization
      6. Blocking Queues
      7. Thread-Safe Collections
      8. Callables and Futures
      9. Executors
      10. Synchronizers
      11. Threads and Swing
    6. Collections
      1. Collection Interfaces
      2. Concrete Collections
      3. The Collections Framework
      4. Algorithms
      5. Legacy Collections
    7. Networking
      1. Connecting to a Server
      2. Implementing Servers
      3. Sending E-Mail
      4. Making URL Connections
      5. Advanced Socket Programming
    8. Database Programming
      1. The Design of JDBC
      2. The Structured Query Language
      3. JDBC Installation
      4. Basic JDBC Programming Concepts
      5. Query Execution
      6. Scrollable and Updatable Result Sets
      7. Metadata
      8. Row Sets
      9. Transactions
      10. Advanced Connection Management
      11. Introduction to LDAP
    9. Distributed Objects
      1. The Roles of Client and Server
      2. Remote Method Invocations
      3. Setup for Remote Method Invocation
      4. Parameter Passing in Remote Methods
      5. Server Object Activation
      6. Java IDL and CORBA
      7. Remote Method Calls with SOAP
    10. Advanced Swing
      1. Lists
      2. Trees
      3. Tables
      4. Styled Text Components
      5. Progress Indicators
      6. Component Organizers
    11. Advanced AWT
      1. The Rendering Pipeline
      2. Shapes
      3. Areas
      4. Strokes
      5. Paint
      6. Coordinate Transformations
      7. Clipping
      8. Transparency and Composition
      9. Rendering Hints
      10. Readers and Writers for Images
      11. Image Manipulation
      12. Printing
      13. The Clipboard
      14. Drag and Drop
    12. JavaBeans Components
      1. Why Beans?
      2. The Bean-Writing Process
      3. Using Beans to Build an Application
      4. Naming Patterns for Bean Properties and Events
      5. Bean Property Types
      6. BeanInfo Classes
      7. Property Editors
      8. Customizers
      9. JavaBeans Persistence
    13. Security
      1. Class Loaders
      2. Bytecode Verification
      3. Security Managers and Permissions
      4. Digital Signatures
      5. Code Signing
      6. Encryption
    14. Internationalization
      1. Locales
      2. Number Formats
      3. Date and Time
      4. Collation
      5. Message Formatting
      6. Text Files and Character Sets
      7. Resource Bundles
      8. A Complete Example
    15. Native Methods
      1. Calling a C Function from the Java Programming Language
      2. Numeric Parameters and Return Values
      3. String Parameters
      4. Accessing Fields
      5. Encoding Signatures
      6. Calling Java Methods
      7. Accessing Array Elements
      8. Handling Errors
      9. Using the Invocation API
      10. A Complete Example: Accessing the Windows Registry
    16. XML
      1. Introducing XML
      2. Parsing an XML Document
      3. Validating XML Documents
      4. Locating Information with XPath
      5. Using Namespaces
      6. Using the SAX Parser
      7. Generating XML Documents
      8. XSL Transformations
    17. Annotations
      1. Addition of Metadata to Programs
      2. An Example: Annotating Event Handlers
      3. Annotation Syntax
      4. Standard Annotations
      5. The apt Tool for Source-Level Annotation Processing
      6. Bytecode Engineering
    18. Index