本書(shū)內(nèi)容全面豐富,覆蓋了Java技術(shù)的所有高級(jí)主題,主要包括流與文件、XML、網(wǎng)絡(luò)、數(shù)據(jù)庫(kù)編程、高級(jí)Swin9、高級(jí)AWT、JavaBean構(gòu)件、安全、分布式對(duì)象、腳本、編譯與注解處理,還介紹了本地化、國(guó)際化以及Java SE 6等內(nèi)容。本書(shū)講解深入透徹,在上一版的基礎(chǔ)上對(duì)JDK 6.0中的新特性進(jìn)行了重點(diǎn)介紹,并包含大量示例,所有示例代碼都對(duì)應(yīng)Java SE 6進(jìn)行了全面更新。本書(shū)可幫助讀者充分理解Java語(yǔ)言和Java類(lèi)庫(kù)的相關(guān)特性,主要針對(duì)將Java技術(shù)運(yùn)用于實(shí)際項(xiàng)目的編程人員。
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