出版時間:2009-9 出版社:人民郵電出版社 作者:(美)霍斯特曼(Horstmann,C.S.),(美)科奈爾 頁數(shù):1032
Tag標(biāo)簽:無
前言
致讀者 本書按照J(rèn)ava SE 6對上一版本進行了完全更新。卷I主要介紹了Java語言的一些關(guān)鍵特性,而本卷主要介紹程序員進行專業(yè)軟件開發(fā)時需要了解的高級主題。因此,與卷I以及本書以前的版本一樣,我們?nèi)詫⑵涠ㄎ挥诿鎸ava技術(shù)運用于實際項目的編程人員?! ≌堊⒁?,如果你是經(jīng)驗豐富的程序員,能夠靈活運用內(nèi)部類和泛型等高級語言特性,就沒有必要在閱讀完卷I的基礎(chǔ)上再從本卷獲益。不過,本卷會根據(jù)適當(dāng)情況去參考引用卷I的有關(guān)內(nèi)容(當(dāng)然,我們希望你或者已經(jīng)購買了卷I),你也可以在任何一本綜合介紹1ava平臺的書中獲取所需的背景知識?! ∪魏我槐緯茧y免會存在一些錯誤和不妥。我們非常希望讀者將在本書中找到的錯誤和不妥通報給我們。當(dāng)然,我們更希望只收到一次出現(xiàn)這些問題的報告。為此,我們創(chuàng)建了一個FAQ、bug修正以及應(yīng)急方案的網(wǎng)站Http://horstmann.com/corejava。可以在bug報告頁面(該頁面的目的是鼓勵讀者閱讀以前的報告)的末尾處添加bug報告,以便發(fā)布bug和問題、給出建議,從而改進本書的未來版本?! ”緯鴥?nèi)容 本書中的章節(jié)大部分是相互獨立的。你可以研究任何感興趣的主題,也可以按照任意順序閱讀這些章節(jié)?! 〉?章介紹輸入輸出處理。在Java中,所有I/O都是通過所謂的“流”來處理的。流使你可以按照統(tǒng)一的方式來處理各種數(shù)據(jù)源之間的通信,如文件、網(wǎng)絡(luò)連接或內(nèi)存塊。本章詳細介紹了各種讀入器和寫出器類,它們使得對Unicode的處理更容易;還介紹了在使用對象序列化機制從而使保存和加載對象變得容易而方便時,其背后的原理是什么。最后,討論了支持高效文件操作的“新I/0”類(它們曾作為最新內(nèi)容添加到Java SE 1.4中)和正則表達式類庫。
內(nèi)容概要
《Java核心技術(shù) 卷2:高級特性(第8版)(英文版)》內(nèi)容全面豐富,覆蓋了Java技術(shù)的所有高級主題,主要包括流與文件、XML、網(wǎng)絡(luò)、數(shù)據(jù)庫編程、高級Swing、高級AWT、JavaBean構(gòu)件、安全、分布式對象、腳本、編譯與注解處理,還介紹了本地化、國際化以及Java SE 6等內(nèi)容。《Java核心技術(shù) 卷2:高級特性(第8版)(英文版)》講解深入透徹,在上一版的基礎(chǔ)上對JDK 6.0中的新特性進行了重點介紹,并包含大量示例,所有示例代碼都對應(yīng)Java SE 6進行了全面更新?! 禞ava核心技術(shù) 卷2:高級特性(第8版)(英文版)》可幫助讀者充分理解Java語言和Java類庫的相關(guān)特性,主要針對將Java技術(shù)運用于實際項目的編程人員。
作者簡介
Cay S.Horstmann是Core JavaServer Faces,Second Edition一書的作者之一。Cay是San Jose州立大學(xué)計算機科學(xué)系的教授,Java的支持者,也是活躍于計算機業(yè)界會議的演講者。 Gary COrnell編寫編程技術(shù)方面的書籍并教授相關(guān)知識已有20多年。是Apress的創(chuàng)始人之一。他編寫了許多有關(guān)編程技術(shù)方面的暢銷書。曾獲Jolt大獎。還贏得了Visual Basic Magazine Readers Choice大獎。
書籍目錄
1 STREAMS AND FILESStreamsReading and Writing BytesThe Complete Stream ZooCombining Stream FiltersText Input and OutputHow to Write Text OutputHow to Read Text InputSaving Objects in Text FormatCharacter SetsReading and Writing Binary DataRandom-Access FilesZIP ArchivesObject Streams and SerializationUnderstanding the Object Serialization File FormatModifying the Default Serialization MechanismSerializing Singletons and Typesafe EnumerationsVersioningUsing Serialization for CloningFile ManagementNew I/OMemory-Mapped FilesThe Buffer Data StructureFile LockingRegular Expressions2 XMLIntroducing XMLThe Structure of an XML DocumentParsing an XML DocumentValidating XML DocumentsDocument Type DefinitionsXML SchemaA Practical ExampleLocating Information with XPathUsing NamespacesStreaming ParsersUsing the SAX ParserUsing the StAX ParserGenerating XML DocumentsWriting an XML Document with StAXXSL Transformations3 NETWORKINGConnecting to a ServerSocket TimeoutsInternet AddressesImplementing ServersServing Multiple ClientsHalf-CloseInterruptible SocketsSending E-MailMaking URL ConnectionsURLs and URIsUsing a URLConnection to Retrieve InformationPosting Form Data4 DATABASE PROGRAMMINGThe Design of JDBCJDBC Driver TypesTypical Uses of JDBCThe Structured Query LanguageJDBC ConfigurationDatabase URLsDriver JAR FilesStarting the DatabaseRegistering the Driver ClassConnecting to the DatabaseExecuting SQL StatementsManaging Connections, Statements, and Result SetsAnalyzing SQL ExceptionsPopulating a DatabaseQuery ExecutionPrepared StatementsReading and Writing LOBsSQL EscapesMultiple ResultsRetrieving Autogenerated KeysScrollable and Updatable Result SetsScrollable Result SetsUpdatable Result SetsRow SetsCached Row SetsMetadataTransactionsSave PointsBatch UpdatesAdvanced SQL TypesConnection Management in Web and Enterprise ApplicationsIntroduction to LDAPConfiguring an LDAP ServerAccessing LDAP Directory Information5 INTERNATIONALIZATIONLocalesNumber FormatsCurrenciesDate and TimeCollationCollation StrengthDecompositionMessage FormattingChoice FormatsText Files and Character SetsCharacter Encoding of Source FilesResource BundlesLocating Resource BundlesProperty FilesBundle ClassesA Complete Example6 ADVANCED SWINGListsThe JList ComponentList ModelsInserting and Removing ValuesRendering ValuesTablesA Simple Table 370 Table ModelsWorking with Rows and ColumnsCell Rendering and EditingTrees 405 Simple TreesNode EnumerationRendering NodesListening to Tree EventsCustom Tree ModelsText ComponentsChange Tracking in Text ComponentsFormatted Input FieldsThe JSpinner ComponentDisplaying HTML with the JEditorPaneProgress IndicatorsProgress BarsProgress MonitorsMonitoring the Progress of Input StreamsComponent OrganizersSplit PanesTabbed PanesDesktop Panes and Internal FramesCascading and TilingVetoing Property Settings7 ADVANCED AWTThe Rendering PipelineShapesUsing the Shape ClassesAreasStrokesPaintCoordinate TransformationsClippingTransparency and CompositionRendering HintsReaders and Writers for ImagesObtaining Readers and Writers for Image File TypesReading and Writing Files with Multiple ImagesImage ManipulationConstructing Raster ImagesFiltering ImagesPrintingGraphics PrintingMultiple-Page PrintingPrint PreviewPrint ServicesStream Print ServicesPrinting AttributesThe ClipboardClasses and Interfaces for Data TransferTransferring TextThe Transferable Interface and Data FlavorsBuilding an Image TransferableTransferring Java Objects via the System ClipboardUsing a Local Clipboard to Transfer Object ReferencesDrag and DropData Transfer Support in SwingDrag SourcesDrop TargetsPlatform IntegrationSplash ScreensLaunching Desktop ApplicationsThe System Tray8 JAVABEANS COMPONENTSWhy Beans?The Bean-Writing ProcessUsing Beans to Build an ApplicationPackaging Beans in JAR FilesComposing Beans in a Builder EnvironmentNaming Patterns for Bean Properties and EventsBean Property TypesSimple PropertiesIndexed PropertiesBound PropertiesConstrained PropertiesBeanInfo ClassesProperty EditorsWriting Property EditorsCustomizersWriting a Customizer ClassJavaBeans PersistenceUsing JavaBeans Persistence for Arbitrary DataA Complete Example for JavaBeans Persistence9 SECURITYClass LoadersThe Class Loader HierarchyUsing Class Loaders as NamespacesWriting Your Own Class LoaderBytecode VerificationSecurity Managers and PermissionsJava Platform SecuritySecurity Policy FilesCustom PermissionsImplementation of a Permission ClassUser AuthenticationJAAS Login ModulesDigital SignaturesMessage DigestsMessage SigningThe X.Certificate FormatVerifying a SignatureThe Authentication ProblemCertificate SigningCertificate RequestsCode SigningJAR File SigningSoftware Developer CertificatesEncryptionSymmetric CiphersKey GenerationCipher StreamsPublic Key Ciphers10 DISTRIBUTED OBJECTSThe Roles of Client and ServerRemote Method CallsStubs and Parameter MarshallingThe RMI Programming ModelInterfaces and ImplementationsThe RMI RegistryDeploying the ProgramLogging RMI ActivityParameters and Return Values in Remote MethodsTransferring Remote ObjectsTransferring Nonremote ObjectsDynamic Class LoadingRemote References with Multiple InterfacesRemote Objects and the equals, hashCode, and clone MethodsRemote Object ActivationWeb Services and JAX-WSUsing JAX-WSA Web Service ClientThe Amazon E-Commerce Service11 SCRIPTING, COMPILING, AND ANNOTATION PROCESSINGScripting for the Java PlatformGetting a Scripting EngineScript Evaluation and BindingsRedirecting Input and OutputCalling Scripting Functions and MethodsCompiling a ScriptAn Example: Scripting GUI EventsThe Compiler APICompiling the Easy WayUsing Compilation TasksAn Example: Dynamic Java Code GenerationUsing AnnotationsAn Example: Annotating Event HandlersAnnotation SyntaxStandard AnnotationsAnnotations for CompilationAnnotations for Managing ResourcesMeta-AnnotationsSource-Level Annotation ProcessingBytecode EngineeringModifying Bytecodes at Load Time12 NATIVE METHODSCalling a C Function from a Java ProgramNumeric Parameters and Return ValuesUsing printf for Formatting NumbersString ParametersAccessing FieldsAccessing Instance FieldsAccessing Static FieldsEncoding SignaturesCalling Java MethodsInstance MethodsStatic MethodsConstructorsAlternative Method InvocationsAccessing Array ElementsHandling ErrorsUsing the Invocation APIA Complete Example: Accessing the Windows RegistryOverview of the Windows RegistryA Java Platform Interface for Accessing the RegistryImplementation of Registry Access Functions as Native MethodsIndex
編輯推薦
《Java核心技術(shù) 卷2:高級特性(第8版)(英文版)》是Core Java,Volume//: Advanced Features的最新版本,主要介紹Java SE 6平臺的高級用戶界面設(shè)計和企業(yè)特性等內(nèi)容。書中精心安排的示例程序用于演示最新的編程技術(shù),并針對專業(yè)開發(fā)者在現(xiàn)實中遇到的問題提供最佳解決方案?! £P(guān)于Java基礎(chǔ)知識的介紹,包括接口與內(nèi)部類、使用Swjng的GUI編程、異常處理、泛型、集合和并發(fā)等內(nèi)容,可參閱《Java核心技術(shù)卷I:基礎(chǔ)知識(第8版)》。
圖書封面
圖書標(biāo)簽Tags
無
評論、評分、閱讀與下載