1. Trang chủ
  2. » Công Nghệ Thông Tin

Prentice hall core java volume 2 advanced features 8th edition apr 2008 ISBN 0132354799

2,3K 159 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 2.330
Dung lượng 13,43 MB

Nội dung

Core Java™ Volume II–Advanced Features, Eighth Edition by Cay S Horstmann; Gary Cornell Publisher: Prentice Hall Pub Date: April 08, 2008 Print ISBN-10: 0-13-235479-9 Print ISBN-13: 978-0-13-235479-0 eText ISBN-10: 0-13-714448-2 eText ISBN-13: 978-0-13-714448-8 Pages: 1056 Table of Contents | Index Overview The revised edition of the classic Core Java™, Volume II— Advanced Features, covers advanced user-interface programming and the enterprise features of the Java SE 6 platform Like Volume I (which covers the core language and library features), this volume has been updated for Java SE 6 and new coverage is highlighted throughout All sample programs have been carefully crafted to illustrate the latest programming techniques, displaying best-practices solutions to the types of real-world problems professional developers encounter Volume II includes new sections on the StAX API, JDBC 4, compiler API, scripting framework, splash screen and tray APIs, and many other Java SE 6 enhancements In this book, the authors focus on the more advanced features of the Java language, including complete coverage of Streams and Files Networking Database programming XML JNDI and LDAP Internationalization Advanced GUI components Java 2D and advanced AWT JavaBeans Security RMI and Web services Collections Annotations Native methods For thorough coverage of Java fundamentals—including interfaces and inner classes, GUI programming with Swing, exception handling, generics, collections, and concurrency—look for the eighth edition of Core Java™, Volume I—Fundamentals (ISBN: 978-0-13-235476-9) Core Java™ Volume II–Advanced Features, Eighth Edition by Cay S Horstmann; Gary Cornell Publisher: Prentice Hall Pub Date: April 08, 2008 Print ISBN-10: 0-13-235479-9 Print ISBN-13: 978-0-13-235479-0 eText ISBN-10: 0-13-714448-2 eText ISBN-13: 978-0-13-714448-8 Pages: 1056 Table of Contents | Index Copyright Preface Acknowledgments Chapter 1 Streams and Files Streams Text Input and Output Reading and Writing Binary Data ZIP Archives Object Streams and Serialization File Management New I/O Regular Expressions Chapter 2 XML Introducing XML Parsing an XML Document Validating XML Documents Locating Information with XPath Using Namespaces Streaming Parsers Generating XML Documents XSL Transformations Chapter 3 Networking Connecting to a Server Implementing Servers Interruptible Sockets Sending E-Mail Making URL Connections Chapter 4 Database Programming The Design of JDBC The Structured Query Language JDBC Configuration Executing SQL Statements Query Execution Scrollable and Updatable Result Sets Row Sets Metadata Transactions Connection Management in Web and Enterprise Applications Introduction to LDAP Chapter 5 Internationalization Locales Number Formats Date and Time Collation Message Formatting Text Files and Character Sets Resource Bundles A Complete Example Chapter 6 Advanced Swing Lists Tables Trees Text Components Progress Indicators Component Organizers Chapter 7 Advanced AWT The Rendering Pipeline Shapes Areas Strokes Paint Coordinate Transformations Clipping Transparency and Composition Rendering Hints Readers and Writers for Images Image Manipulation Printing The Clipboard Drag and Drop Platform Integration Chapter 8 JavaBeans Components Why Beans? The Bean-Writing Process Using Beans to Build an Application Naming Patterns for Bean Properties and Events Bean Property Types BeanInfo Classes Property Editors Customizers JavaBeans Persistence Chapter 9 Security Class Loaders Bytecode Verification Security Managers and Permissions User Authentication Digital Signatures Code Signing Encryption Chapter 10 Distributed Objects The Roles of Client and Server Remote Method Calls The RMI Programming Model Parameters and Return Values in Remote Methods Remote Object Activation Web Services and JAX-WS Chapter 11 Scripting, Compiling, and Annotation Processing Scripting for the Java Platform The Compiler API Using Annotations Annotation Syntax Standard Annotations Source-Level Annotation Processing Bytecode Engineering Chapter 12 Native Methods Calling a C Function from a Java Program Numeric Parameters and Return Values String Parameters Accessing Fields Encoding Signatures Calling Java Methods Accessing Array Elements Handling Errors Using the Invocation API A Complete Example: Accessing the Windows Registry Index Copyright Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals Sun Microsystems, Inc., has intellectual property rights relating to implementations of the technology described in this publication In particular, and without limitation, these intellectual property rights may include one or more U.S patents, foreign patents, or pending applications Sun, Sun Microsystems, the Sun logo, J2ME, Solaris, Java, Javadoc, NetBeans, and all Sun and Java based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc., in the United States and other countries UNIX is a registered trademark in the United States and other countries, exclusively licensed through X/Open Company, Ltd The authors and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein THIS PUBLICATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT THIS PUBLICATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPO-GRAPHICAL ERRORS CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THE PUBLICATION SUN MICROSYSTEMS, INC., MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS PUBLICATION AT ANY TIME The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests For more information, please contact: U.S Corporate and Government Sales, (800) 3823419, corpsales@pearsontechgroup.com For sales outside the United States please contact: International Sales, international@pearsoned.com Visit us on the Web: informit.com/ph Library of Congress Cataloging-in-Publication Data Horstmann, Cay S., 1959 Core Java Volume 1, Fundamentals / Cay S Horstmann, Gary Cornell — 8th ed p cm Includes index ISBN 978-0-13-2354769 (pbk : alk paper) Java (Computer program language) I Cornell, Gary II Title III Title: Fundamentals IV Title: Core Java fundamentals QA76.73.J38H6753 2008 005.13'3—dc22 2007028843 Copyright © 2008 Sun Microsystems, Inc 4150 Network Circle, Santa Clara, California 95054 U.S.A All rights reserved Printed in the United States of America This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise For information regarding permissions, write to: Pearson Education, Inc., Rights and Contracts Department, 501 Boylston Street, Suite 900, Boston, MA 02116, Fax: 617-671-3447 ISBN-13: 978-0-13-235479-0 Text printed in the United States on recycled paper at Courier in Stoughton, Massachusetts First printing, April 2008 Text file, inside a ZIP file Text format for saving data saving objects in Text fragments Text input, reading Text nodes constructing as only children Text output, writing Text strings converting back to a property value property editors working with saving TextFileTest.java TextLayout class TextLayout object TextTransferTest.java TexturePaint class 2nd 3rd TexturePaint object this argument object Thread(s) executing scripts in multiple forcing loading in a separate making connections using referencing class loaders Thread class ThreadedEchoHandler class ThreadedEchoServer.java THREAD-ISOLATED value Three-tier applications Three-tier model Throw function ThrowNew function Thumbnails Tiled internal frames Tiling frames windows Time computing in different time zones formatting TIME data type, in SQL 2nd Time of day service Time picker Timeout value, selecting Timer, updating progress measurement TIMESTAMP data type, in SQL 2nd TimeZone class 2nd TitlePositionEditor.java Tödter, Kai Tool class Toolkit class Tools, processing annotations tools.jar, as no longer necessary Tooltip, for a tray icon Top-left corner, shifting toString method calling to get a string displaying table objects returning a class name of the Variable class Tracing Tracking, in text components Transactions Transfer handler adding 2nd constructing installing Transfer wrapper 2nd Transferable interface 2nd 3rd Transferable object Transferable wrapper TransferHandler class 2nd 3rd 4th TransferSupport class transform method 2nd 3rd 4th Transformations composing 2nd supplying types of from user space to device space using 2nd Transformer class TransformerFactory class 2nd TransformTest.java Transient fields transient keyword Transient properties Transitional events translate method 2nd Translation transformation Transmission Control Protocol (TCP) Transparency Traversal order Traversals Tray icons 2nd TrayIcon class TrayIcon instance Tree(s) cell renderer 2nd 3rd classes composed of nodes 2nd describing an infinite editing events leaves of 2nd parsers paths 2nd program displaying with a few nodes 2nd 3rd selection listener simple structures 2nd with/without connecting lines Tree model(s) constructing 2nd custom linking nodes together obtaining Tree nodes accessing with XPath changing font for individual determining currently selected editing iterating through TreeCellRenderer class TreeCellRenderer interface 2nd TreeEditTest.java TreeModel class 2nd TreeModel interface 2nd 3rd TreeModelEvent class TreeModelEvent object TreeModelListener class TreeModelListener interface TreeNode array TreeNode class 2nd TreeNode interface 2nd treeNodesChanged method treeNodesInserted method treeNodesRemoved method TreePath class 2nd TreePath constructor TreePath objects TreeSelectionEvent class 2nd TreeSelectionListener class TreeSelectionListener interface TreeSelectionModel treeStructureChanged method trim method True Odds: How Risks Affect Your Everyday Life (Walsh) Trust, giving to an applet Trust models, assuming a chain of trust try/catch block try/finally block tryLock method 2nd Type(s) defined by a schema of images nesting definitions for in a placeholder index Type drivers TYPE_INT_ARGB TYPE_INT_ARGB type Typesafe enumerations Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] UDP (User Datagram Protocol) UI-intensive Windows programs, Visual Basic optimized for Unambiguous DTD Unicast UnicastRemoteObject class 2nd Unicode characters 2nd "replacement character" ('\uFFFD') strings using for all strings UNICODE_CASE flag Uniform Resource Identifier [See URI (Uniform Resource Identifier).] Uniform resource name (URN) Unique identifier, for a remote object UNIX user, checking the name of UNIX_LINES flag UnknownHostException UnsatisfiedLinkError Unwrap mode Updatable result sets 2nd update methods 2nd UPDATE statement 2nd updateRow method 2nd Upper case, turning characters of a string to Upper character class URI (Uniform Resource Identifier) 2nd URI class URL(s) compared to URIs connections forms of specifying a Derby database specifying for a DTD types of URL class 2nd 3rd URL data source URL object URLClassLoader class URLConnection URLConnection class API notes compared to Socket methods using to retrieve information URLConnection object 2nd URLConnectionTest.java URLDecoder class URLEncoder class URN (uniform resource name) US-ASCII character encoding User(s) authentication coordinates, in transformations 2nd drop action interface components names objects 2nd providing illegal input restricting permissions to certain User Datagram Protocol (UDP) UTF-8 character encoding 2nd 3rd UTF-16 character encoding 2nd 3rd Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] Validating, XML documents Validation of input languages turning on VALUE_RENDER_QUALITY VALUE_STROKE_NORMALIZE valueChanged method 2nd valueToString method VARCHAR data type, in SQL 2nd Variable class Variable-byte encodings Variants, in locales Vendor name, of a reader Verification Verifiers 2nd VerifierTest.java verify method VeriSign, Inc 2nd VeriSign certificate Version number of the object serialization format of a reader Versioning VERTICAL, for a list box VERTICAL_SPLIT, for a split pane VERTICAL_WRAP, for a list box Very long lists Vetoable change listeners vetoableChange method VetoableChangeListener 2nd 3rd 4th VetoableChangeSupport class 2nd Vetoing 2nd ViewDB application ViewDB.java Virtual machine(s) embedding into C or C++ programs function terminating launching loading class files setting up and calling the main method of Welcome terminating transferring values between writing strings intended for Visual Basic 2nd Visual feedback 2nd Visual presentation Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] WarehouseActivator.java WarehouseClient program 2nd WarehouseImpl.java 2nd 3rd Warehouse.java WarehouseServer server program WarehouseServer.java 2nd WarehouseService class Warning class Warnings, retrieving Weak certificates WeakReference objects Web applications Web browser 2nd Web crawler program code for implemented with the StAX parser implementing Web or enterprise environment, JDBC applications in Web pages, accessing secure Web servers, invoking programs Web service client Web services architecture components of concrete example of in Java Web Services Description Language [See WSDL (Web Services Description Language).] Web Start applications @WebParam annotation WebRowSet interface @WebService WHERE clause, in SQL Whitespace 2nd 3rd Wild card characters, in SQL Win32RegKey class Win32RegKey.java Win32RegKeyn class Win32RegKeyNameEnumeration class Win32RegKeyTest.java Window listener Windows [See also Microsoft Windows.] cascading all compiling InvocationTest.c Windows executable program Windows look and feel standard commands for cascading and tiling tree with 2nd Windows Vista, activating telnet Word check permissions WordCheckPermission class WordCheckPermission.java Worker thread, blocking indefinitely Working directory, finding wrap method Wrap mode Wrapper class WritableByteChannel interface WritableRaster class WritableRaster type Write, then read cycle write method of ImageIO of OutputStream 2nd of Writer writing out the first image writeAttribute writeCharacters writeData method writeDouble method writeEmptyElement writeEndDocument writeEndElement writeExternal method writeFixedString method writeInt method writeObject method of the Date class of ObjectOutputStream 2nd as private of a serializable class Write-only property Writer class writeStartDocument writeStartElement writeUTF method Writing, text output WS-* [See Web services.] WSDL (Web Services Description Language) 2nd for the Amazon E-Commerce Service file wsgen class wsimport utility Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] x- prefix, indicating an experimental name X Window System X.500 distinguished names X.509 certificate format XDigit character class XHTML 2nd XML approaches for writing compared to HTML describing a grid bag layout format, expressing hierarchical structures header introducing layout, defining a font dialog output 2nd 3rd parsers protocol, advantage of reader, generating SAX events standard use of in a realistic setting XML documents generating parsing reading structure of transforming into other formats validating writing with StAX XML files describing a gridbag layout describing a program configuration format of parsing with a schema transforming into HTML XML Schema 2nd XMLDecoder 2nd XMLEncoder 2nd 3rd XMLInputFactory class XMLOutputFactory class XMLReader interface 2nd XMLStreamReader class XMLStreamWriter 2nd XMLWriteTest.java XOR rule XPath expressions functions language XPath class XPath object XPathFactory class XPathTest.java xsd prefix xsd:choice construct xsd:schema element xsd:sequence construct xsl:output element XSLT (XSL Transformations) 2nd XSLT processor 2nd 3rd XSLT style sheet 2nd xsl:value-of statement Xxx2D classes Xxx2D.Double class Xxx2D.Float class Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z] ZIP archives ZIP file opening reading numbers from 2nd reading through writing ZIP input stream ZIP streams ZipEntry class ZipEntry constructor ZipEntry object ZipException ZipFile ZipInputStream 2nd 3rd ZipOutputStream 2nd 3rd ZipTest.java ... for the eighth edition of Core Java , Volume I—Fundamentals (ISBN: 978-0-13 -23 5476-9) Core Java Volume II Advanced Features, Eighth Edition by Cay S Horstmann; Gary Cornell Publisher: Prentice Hall Pub Date: April 08, 20 08... Horstmann; Gary Cornell Publisher: Prentice Hall Pub Date: April 08, 20 08 Print ISBN- 10: 0-13 -23 5479-9 Print ISBN- 13: 978-0-13 -23 5479-0 eText ISBN- 10: 0-13-714448 -2 eText ISBN- 13: 978-0-13-714448-8 Pages: 1056 Table of Contents | Index... Cornell, Gary II Title III Title: Fundamentals IV Title: Core Java fundamentals QA76.73.J38H6753 20 08 005.13'3—dc 22 20 07 028 843 Copyright © 20 08 Sun Microsystems, Inc 4150 Network Circle, Santa Clara, California 95054 U.S.A

Ngày đăng: 26/03/2019, 16:05

TỪ KHÓA LIÊN QUAN

w