| 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 Registry Implementation of Registry Access Functions as Native MethodsIndex |
商品评论(0条)