本書內容全面豐富,覆蓋了Java技術的所有高級主題,主要包括流與文件、XML、網(wǎng)絡、數(shù)據(jù)庫編程、高級Swin9、高級AWT、JavaBean構件、安全、分布式對象、腳本、編譯與注解處理,還介紹了本地化、國際化以及Java SE 6等內容。本書講解深入透徹,在上一版的基礎上對JDK 6.0中的新特性進行了重點介紹,并包含大量示例,所有示例代碼都對應Java SE 6進行了全面更新。本書可幫助讀者充分理解Java語言和Java類庫的相關特性,主要針對將Java技術運用于實際項目的編程人員。
1 STREAMS AND FILES Streams Reading and Writing Bytes The Complete Stream Zoo Combining Stream Filters Text I nput and Output How to Write Text Output How to Read Text Input Saving Objects in Text Format Character SetS Reading and Writing B inary Data Random-Access Files ZIP Archives Object Streams and Serialization U nderstand i ng the Object Serial ization Fi le Format Modifying the Default Serialization Mechanism Serializing Singletons and Typesafe Enumerations Versioning Using Serialization for Cloning Fi le Management New I/O Memory—Mapped Fi les The Buffer Data Structure Fi le Locking Regular Expressions 2 XML Introducing XML The Structure of an XML Docu ment Parsing an XML Document Validating XML Documents Document Type Definitions XML Schema A Practical Example Locating Information with XPath Using Namespaces Streaming Parsers Using the SAX Parser Using the StAX Parser Generating XML Documents Writing an XML Document with StAX XSL Transformations 3 NETWORKING Connecting to a Server Socket Ti meouts …… 4 DATABASE PROGRAMMING 5 INTERNATIONALIZATION 6 ADVANCED SWING 7 ADVANCED AWT 8 JAVABEANS COMPONENTS 9 SECURITY 10 DISTRIBUTED OBJECTS 11 SCRIPTING,COMPILING,AND ANNOTATION PROCESSING 12 NATIVE METHODS INDEX