出版时间:2009-9 出版社:人民邮电出版社 作者:(美)霍斯特曼(Horstmann,C.S.),(美)科奈尔 页数:1032
Tag标签:无
前言
致读者 本书按照Java SE 6对上一版本进行了完全更新。卷I主要介绍了Java语言的一些关键特性,而本卷主要介绍程序员进行专业软件开发时需要了解的高级主题。因此,与卷I以及本书以前的版本一样,我们仍将其定位于面对将Java技术运用于实际项目的编程人员。 请注意,如果你是经验丰富的程序员,能够灵活运用内部类和泛型等高级语言特性,就没有必要在阅读完卷I的基础上再从本卷获益。不过,本卷会根据适当情况去参考引用卷I的有关内容(当然,我们希望你或者已经购买了卷I),你也可以在任何一本综合介绍1ava平台的书中获取所需的背景知识。 任何一本书都难免会存在一些错误和不妥。我们非常希望读者将在本书中找到的错误和不妥通报给我们。当然,我们更希望只收到一次出现这些问题的报告。为此,我们创建了一个FAQ、bug修正以及应急方案的网站Http://horstmann.com/corejava。可以在bug报告页面(该页面的目的是鼓励读者阅读以前的报告)的末尾处添加bug报告,以便发布bug和问题、给出建议,从而改进本书的未来版本。 本书内容 本书中的章节大部分是相互独立的。你可以研究任何感兴趣的主题,也可以按照任意顺序阅读这些章节。 第1章介绍输入输出处理。在Java中,所有I/O都是通过所谓的“流”来处理的。流使你可以按照统一的方式来处理各种数据源之间的通信,如文件、网络连接或内存块。本章详细介绍了各种读入器和写出器类,它们使得对Unicode的处理更容易;还介绍了在使用对象序列化机制从而使保存和加载对象变得容易而方便时,其背后的原理是什么。最后,讨论了支持高效文件操作的“新I/0”类(它们曾作为最新内容添加到Java SE 1.4中)和正则表达式类库。
内容概要
《Java核心技术 卷2:高级特性(第8版)(英文版)》内容全面丰富,覆盖了Java技术的所有高级主题,主要包括流与文件、XML、网络、数据库编程、高级Swing、高级AWT、JavaBean构件、安全、分布式对象、脚本、编译与注解处理,还介绍了本地化、国际化以及Java SE 6等内容。《Java核心技术 卷2:高级特性(第8版)(英文版)》讲解深入透彻,在上一版的基础上对JDK 6.0中的新特性进行了重点介绍,并包含大量示例,所有示例代码都对应Java SE 6进行了全面更新。 《Java核心技术 卷2:高级特性(第8版)(英文版)》可帮助读者充分理解Java语言和Java类库的相关特性,主要针对将Java技术运用于实际项目的编程人员。
作者简介
Cay S.Horstmann是Core JavaServer Faces,Second Edition一书的作者之一。Cay是San Jose州立大学计算机科学系的教授,Java的支持者,也是活跃于计算机业界会议的演讲者。 Gary COrnell编写编程技术方面的书籍并教授相关知识已有20多年。是Apress的创始人之一。他编写了许多有关编程技术方面的畅销书。曾获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核心技术 卷2:高级特性(第8版)(英文版)》是Core Java,Volume//: Advanced Features的最新版本,主要介绍Java SE 6平台的高级用户界面设计和企业特性等内容。书中精心安排的示例程序用于演示最新的编程技术,并针对专业开发者在现实中遇到的问题提供最佳解决方案。 关于Java基础知识的介绍,包括接口与内部类、使用Swjng的GUI编程、异常处理、泛型、集合和并发等内容,可参阅《Java核心技术卷I:基础知识(第8版)》。
图书封面
图书标签Tags
无
评论、评分、阅读与下载