关闭

关闭

封号提示

内容

首页 [Java.Cookbook(2nd,2004.6)].Ian.F.Darwin.文字版.pdf

[Java.Cookbook(2nd,2004.6)].Ian.F.Darwin.文字版.pdf

[Java.Cookbook(2nd,2004.6)].Ian…

上传者: 二二二二二二二2 2014-02-22 评分1 评论0 下载1 收藏0 阅读量878 暂无简介 简介 举报

简介:本文档为《[Java.Cookbook(2nd,2004.6)].Ian.F.Darwin.文字版pdf》,可适用于软件工程领域,主题内容包含JavaCookbookOtherJavaresourcesfromO’ReillyRelatedtitlesJavainaNutshellHead符等。

JavaCookbookOtherJavaresourcesfromO’ReillyRelatedtitlesJavainaNutshellHeadFirstJavaHeadFirstEJBProgrammingJakartaStrutsTomcat:TheDefinitiveGuideLearningJavaBetter,Faster,LighterJavaJavaServletandJSPCookbookHardcoreJavaJavaServerPagesJavaBooksResourceCenterjavaoreillycomisacompletecatalogofO’Reilly’sbooksonJavaandrelatedtechnologies,includingsamplechaptersandcodeexamplesOnJavacomisaonestopresourceforenterpriseJavadevelopers,featuringnews,coderecipes,interviews,weblogs,andmoreConferencesO’ReillybringsdiverseinnovatorstogethertonurturetheideasthatsparkrevolutionaryindustriesWespecializeindocumentingthelatesttoolsandsystems,translatingtheinnovator’sknowledgeintousefulskillsforthoseinthetrenchesVisitconferencesoreillycomforourupcomingeventsSafariBookshelf(safarioreillycom)isthepremieronlinereferencelibraryforprogrammersandITprofessionalsConductsearchesacrossmorethan,booksSubscriberscanzeroinonanswerstotimecriticalquestionsinamatterofsecondsReadthebooksonyourBookshelffromcovertocoverorsimplyfliptothepageyouneedTryittodaywithafreetrialJavaCookbookSECONDEDITIONIanFDarwinBeijing•Cambridge•Farnham•Köln•Paris•Sebastopol•Taipei•TokyoJavaCookbook,SecondEditionbyIanFDarwinCopyright,O’ReillyMedia,IncAllrightsreservedPrintedintheUnitedStatesofAmericaPublishedbyO’ReillyMedia,Inc,GravensteinHighwayNorth,Sebastopol,CAO’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluseOnlineeditionsarealsoavailableformosttitles(safarioreillycom)Formoreinformation,contactourcorporateinstitutionalsalesdepartment:()orcorporateoreillycomEditors:MikeLoukidesandDebraCameronProductionEditor:MarloweShaefferCoverDesigner:HannaDyerInteriorDesigner:DavidFutatoPrintingHistory:June:FirstEditionJune:SecondEditionNutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,IncTheCookbookseriesdesignations,JavaCookbook,theimageofadomesticchicken,andrelatedtradedressaretrademarksofO’ReillyMedia,IncJavaandallJavabasedtrademarksandlogosaretrademarksorregisteredtrademarksofSunMicrosystems,Inc,intheUnitedStatesandothercountriesO’ReillyMedia,IncisindependentofSunMicrosystems,IncManyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarksWherethosedesignationsappearinthisbook,andO’ReillyMedia,Incwasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcapsWhileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedhereinThisbookusesRepKover,adurableandflexiblelayflatbindingISBN:ISBN:MvTableofContentsPrefacexvGettingStarted:Compiling,Running,andDebuggingCompilingandRunningJava:JDKEditingandCompilingwithaColorHighlightingEditorCompiling,Running,andTestingwithanIDEUsingCLASSPATHEffectivelyUsingthecomdarwinsysAPIClassesfromThisBookCompilingtheSourceCodeExamplesfromThisBookAutomatingCompilationwithAntRunningAppletsDealingwithDeprecationWarningsConditionalDebuggingWithout#ifdefDebuggingPrintoutsMaintainingProgramCorrectnesswithAssertionsDebuggingwithJDBUnitTesting:AvoidtheNeedforDebuggersGettingReadableTracebacksFindingMoreJavaSourceCodeProgram:DebugInteractingwiththeEnvironmentGettingEnvironmentVariablesSystemPropertiesWritingJDKReleaseDependentCodeWritingOperatingSystemDependentCodeUsingExtensionsorOtherPackagedAPIsParsingCommandLineArgumentsvi|TableofContentsStringsandThingsTakingStringsApartwithSubstringsTakingStringsApartwithStringTokenizerPuttingStringsTogetherwith,StringBuilder(JDK),andStringBufferProcessingaStringOneCharacterataTimeAligningStringsConvertingBetweenUnicodeCharactersandStringsReversingaStringbyWordorbyCharacterExpandingandCompressingTabsControllingCaseIndentingTextDocumentsEnteringNonprintableCharactersTrimmingBlanksfromtheEndofaStringParsingCommaSeparatedDataProgram:ASimpleTextFormatterProgram:SoundexNameComparisonsPatternMatchingwithRegularExpressionsRegularExpressionSyntaxUsingregexesinJava:TestforaPatternFindingtheMatchingTextReplacingtheMatchedTextPrintingAllOccurrencesofaPatternPrintingLinesContainingaPatternControllingCaseinRegularExpressionsMatching“Accented”orCompositeCharactersMatchingNewlinesinTextProgram:ApacheLogfileParsingProgram:DataMiningProgram:FullGrepNumbersCheckingWhetheraStringIsaValidNumberStoringaLargerNumberinaSmallerNumberConvertingNumberstoObjectsandViceVersaTakingaFractionofanIntegerWithoutUsingFloatingPointEnsuringtheAccuracyofFloatingPointNumbersComparingFloatingPointNumbersTableofContents|viiRoundingFloatingPointNumbersFormattingNumbersConvertingBetweenBinary,Octal,Decimal,andHexadecimalOperatingonaSeriesofIntegersWorkingwithRomanNumeralsFormattingwithCorrectPluralsGeneratingRandomNumbersGeneratingBetterRandomNumbersCalculatingTrigonometricFunctionsTakingLogarithmsMultiplyingMatricesUsingComplexNumbersHandlingVeryLargeNumbersProgram:TempConverterProgram:NumberPalindromesDatesandTimesFindingToday’sDatePrintingDateTimeinaGivenFormatRepresentingDatesinOtherEpochsConvertingYMDHMStoaCalendarorEpochSecondsParsingStringsintoDatesConvertingEpochSecondstoDMYHMSAddingtoorSubtractingfromaDateorCalendarDifferenceBetweenTwoDatesComparingDatesDayofWeekMonthYearorWeekNumberCreatingaCalendarPageMeasuringElapsedTimeSleepingforaWhileProgram:ReminderServiceStructuringDatawithJavaUsingArraysforDataStructuringResizinganArrayLikeanArray,butMoreDynamicUsingIteratorsforDataIndependentAccessStructuringDatainaLinkedListMappingwithHashtableandHashMapviii|TableofContentsStoringStringsinPropertiesandPreferencesSortingaCollectionAvoidingtheUrgetoSortEschewingDuplicationFindinganObjectinaCollectionConvertingaCollectiontoanArrayRollingYourOwnIteratorStackMultidimensionalStructuresFinally,CollectionsProgram:TimingComparisonsDataStructuringwithGenerics,foreach,andEnumerations(JDK)UsingGenericCollectionsUsing“foreach”LoopsAvoidCastingbyUsingGenericsLetJavaConvertwithAutoBoxingandAutoUnboxingUsingTypesafeEnumerationsProgram:MediaInvoicerObjectOrientedTechniquesPrintingObjects:FormattingwithtoString()OverridingtheEqualsMethodOverridingthehashCodeMethodTheCloneMethodTheFinalizeMethodUsingInnerClassesProvidingCallbacksviaInterfacesPolymorphismAbstractMethodsPassingValuesEnforcingtheSingletonPatternRollYourOwnExceptionsProgram:PlotterInputandOutputReadingStandardInputWritingStandardOutputPrintingwiththeFormatterScanningaFilewithStreamTokenizerScanningInputwiththeScannerClassTableofContents|ixOpeningaFilebyNameCopyingaFileReadingaFileintoaStringReassigningtheStandardStreamsDuplicatingaStreamasItIsWrittenReadingWritingaDifferentCharacterSetThosePeskyEndofLineCharactersBewarePlatformDependentFileCodeReading“Continued”LinesBinaryDataSeekingWritingDataStreamsfromCSavingandRestoringJavaObjectsPreventingClassCastExceptionswithSerialVersionUIDReadingandWritingJARorZipArchivesReadingandWritingCompressedFilesProgram:TexttoPostScriptDirectoryandFilesystemOperationsGettingFileInformationCreatingaFileRenamingaFileDeletingaFileCreatingaTransientFileChangingFileAttributesListingaDirectoryGettingtheDirectoryRootsCreatingNewDirectoriesProgram:FindProgrammingExternalDevices:SerialandParallelPortsChoosingaPortOpeningaSerialPortOpeningaParallelPortResolvingPortConflictsReadingandWriting:LockStepReadingandWriting:EventDrivenReadingandWriting:ThreadsProgram:PenmanPlotterx|TableofContentsGraphicsandSoundPaintingwithaGraphicsObjectTestingGraphicalComponentsDrawingTextDrawingCenteredTextinaComponentDrawingaDropShadowDrawingTextwithDDrawingTextwithanApplicationFontDrawinganImagePlayingaSoundFilePlayingaVideoClipPrintinginJavaProgram:PlotterAWTProgram:GrapherGraphicalUserInterfacesDisplayingGUIComponentsDesigningaWindowLayoutATabbedViewofLifeActionHandling:MakingButtonsWorkActionHandlingUsingAnonymousInnerClassesTerminatingaProgramwith“WindowClose”Dialogs:WhenLaterJustWon’tDoCatchingandFormattingGUIExceptionsGettingProgramOutputintoaWindowChoosingaValuewithJSpinnerChoosingaFilewithJFileChooserChoosingaColorFormattingJComponentswithHTMLCenteringaMainWindowChangingaSwingProgram’sLookandFeelEnhancingYourGUIforMacOSXProgram:CustomFontChooserProgram:CustomLayoutManagerInternationalizationandLocalizationCreatingaButtonwithINResourcesListingAvailableLocalesCreatingaMenuwithINResourcesTableofContents|xiWritingInternationalizationConvenienceRoutinesCreatingaDialogwithINResourcesCreatingaResourceBundleExtractingStringsfromYourCodeUsingaParticularLocaleSettingtheDefaultLocaleFormattingMessagesProgram:MenuIntlProgram:BusCardNetworkClientsContactingaServerFindingandReportingNetworkAddressesHandlingNetworkErrorsReadingandWritingTextualDataReadingandWritingBinaryDataReadingandWritingSerializedDataUDPDatagramsProgram:TFTPUDPClientProgram:TelnetClientProgram:ChatClientServerSideJava:SocketsOpeningaServerforBusinessReturningaResponse(StringorBinary)ReturningObjectInformationHandlingMultipleClientsServingtheHTTPProtocolSecuringaWebServerwithSSLandJSSENetworkLoggingNetworkLoggingwithlogjNetworkLoggingwithJDKFindingNetworkInterfacesProgram:AJavaChatServerNetworkClientsII:AppletsandWebClientsEmbeddingJavainaWebPageAppletTechniquesContactingaServerontheAppletHostxii|TableofContentsMakinganAppletShowaDocumentMakinganAppletRunJavaScriptMakinganAppletRunaCGIScriptReadingtheContentsofaURLURI,URL,orURNExtractingHTMLfromaURLExtractingURLsfromaFileConvertingaFilenametoaURLProgram:MkIndexProgram:LinkCheckerJavaandElectronicMailSendingEmail:BrowserVersionSendingEmail:ForRealMailEnablingaServerProgramSendingMIMEMailProvidingMailSettingsSendingMailWithoutUsingJavaMailReadingEmailProgram:MailReaderBeanProgram:MailClientDatabaseAccessEasyDatabaseAccesswithJDOTextFileDatabasesDBMDatabasesJDBCSetupandConnectionConnectingtoaJDBCDatabaseSendingaJDBCQueryandGettingResultsUsingJDBCPreparedStatementsUsingStoredProcedureswithJDBCChangingDataUsingaResultSetStoringResultsinaRowSetChangingDataUsingSQLFindingJDBCMetadataProgram:SQLRunnerXMLGeneratingXMLfromObjectsTransformingXMLwithXSLTTableofContents|xiiiParsingXMLwithSAXParsingXMLwithDOMVerifyingStructurewithaDTDGeneratingYourOwnXMLwithDOMProgram:xmlmifDistributedJava:RMIDefiningtheRMIContractCreatinganRMIClientCreatinganRMIServerDeployingRMIAcrossaNetworkProgram:RMICallbacksProgram:NetWatchPackagesandPackagingCreatingaPackageDocumentingClasseswithJavadocBeyondJavaDoc:AnnotationsMetadata(JDK)andXDocletArchivingwithjarRunninganAppletfromaJARRunninganAppletwithaModernJDKRunningaMainProgramfromaJARPreparingaClassasaJavaBeanPicklingYourBeanintoaJARPackagingaServletintoaWARFile“WriteOnce,InstallAnywhere”“WriteOnce,InstallonMacOSX”JavaWebStartSigningYourJARFileThreadedJavaRunningCodeinaDifferentThreadDisplayingaMovingImagewithAnimationStoppingaThreadRendezvousandTimeoutsSynchronizingThreadswiththesynchronizedKeywordSimplifyingSynchronizationwithLocksSynchronizingThreadswithwait()andnotifyAll()SimplifyingProducerConsumerwiththeQueueInterfacexiv|TableofContentsBackgroundSavinginanEditorProgram:ThreadedNetworkServerSimplifyingServersUsingtheConcurrencyUtilities(JDK)Introspection,or“AClassNamedClass”GettingaClassDescriptorFindingandUsingMethodsandFieldsLoadingandInstantiatingaClassDynamicallyConstructingaClassfromScratchPerformanceTimingPrintingClassInformationProgram:CrossRefProgram:AppletViewerUsingJavawithOtherLanguagesRunningaProgramRunningaProgramandCapturingItsOutputMixingJavaandScriptswithBSFMarryingJavaandPerlBlendinginNativeCode(CC)CallingJavafromNativeCodeProgram:DBMAfterwordIndexThisistheTitleoftheBook,eMatterEditionCopyrightO’ReillyAssociates,IncAllrightsreservedxvPrefacePrefacetotheSecondEditionJDK,codenamedTiger,isanexcitingchangetotheJavalandscapeItintroducesseveralmajornewfacilities,suchasgenerictypesforbetterdatastructuring,metadataforannotatingJavaclassesinaflexiblebutwelldefinedmanner,newpatternbasedmechanismsforreadingdata,andanewmechanismforformattedprintingInaddition,amuchlargernumberofsmallerbutimportantchangesadduptoanewreleasethatisamustforJavadevelopersItwillbequitesometimebeforethesemechanismsarefullyunderstoodandinwidecirculation,butyouwillwanttoknowaboutthemrightawayIwroteintheAfterwordtothefirsteditionthat“writingthisbookhasbeenahumblingexperience”Ishouldaddthatmaintainingithasbeenhumbling,tooWhilemanyreviewersandwritershave

类似资料

编辑推荐

分析化学答案全(武汉大学第五版).pdf

学者的师承与家派.pdf

班组长人员管理.doc

周易尚占(虎易录入校对版).doc

大学英语四级考试历年真题及答案(1987-2008全集).doc

职业精品

精彩专题

墨西哥——让人低估的旅游城市

墨西哥是美洲大陆上的文明古国,以阳光与热情著称,墨西哥气候宜人,风光秀丽,尤其是名胜古迹非常多。所以当您选择去墨西哥旅游时,首先要去的就是举世闻名的旅游圣地——墨西哥城。

用户评论

0/200
    暂无评论
上传我的资料

精选资料

热门资料排行换一换

  • 中国出土古文献十讲.pdf

  • 从优秀到卓越.pdf

  • 中国通史简编.pdf

  • 推荐有关剧作的书籍.doc

  • 朱子哲学研究.pdf

  • 培根论人生 何新译.pdf

  • 语言的功能与文体_0.pdf

  • 话题的结构与功能.pdf

  • 中国古代天文历法基础知识.pdf

  • 资料评价:

    / 864
    所需积分:1 立即下载

    意见
    反馈

    返回
    顶部