`
nything
  • 浏览: 141617 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Properties类中setProperty 方法和put()方法的区别

 
阅读更多

 

因为 Properties 继承于 Hashtable,所以可对 Properties 对象应用 putputAll 方法。但强烈反对使用这两个方法,因为它们允许调用方插入其键或值不是 Strings 的项。相反,应该使用 setProperty 方法。如果在“有危险”的 Properties 对象(即包含非 String 的键或值)上调用 storesave 方法,则该调用将失败。

分享到:
评论

相关推荐

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持D4-XE5

    + [enterprise] added property "Reports" - "MaxReports" in server configuration - set the limit of maximum report threads, set 0 for unlimit + [enterprise] added property "Logs" - "SchedulerLog" in ...

    fluent-logger-mock-sender:为流畅的记录器提供模拟发送者

    setProperty( Config . FLUENT_SENDER_CLASS , MockSender . class . getName()); FluentLogger logger = FluentLogger . getLogger( " tag-prefix " ); Map< String> map1 = new HashMap<> (); map1 . put( " ...

    ZendFramework中文文档

    13.8. 自定义Feed和条目类 14. Zend_Filter 14.1. 简介 14.1.1. 什么是过滤器(filter)? 14.1.2. 过滤器的基本用法 14.1.3. 使用静态 get() 方法 14.2. 标准过滤器类 14.2.1. Alnum 14.2.2. Alpha 14.2.3. ...

    cms后台管理

    ……get set方法 } 接下来是配置hibernate中jc_mycontent表的配置文件 <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" ...

    weapp.qrcode.js

    var setProperty = function setProperty(target, options) { if (defineProperty && options.name === '__proto__') { defineProperty(target, options.name, { enumerable: true, configurable: true, ...

    EHLib 6.3.171〖D7~XE5〗

    - When the current cell in the grid is on the first line , then by Alt+Tab key in the Grid will put focus to the previous TabStop Control of a Form (dgvhTabToNextRowEh property must be included). ...

    Sending Email using MAPI - A COM DLL(sending email demo and soucecode)

    Open account properties by pressing Properties button and change the account name from default name (say Hotmail) to TestProfile. Step 2: Register the DLL All ...

    VclZip pro v3.10.1

    This modification means that if you are creating zip files to be used as SFX's you will want to leave the OEMConvert property mentioned above, set to it's default value of True. Modified so that ...

    Java邮件开发Fundamentals of the JavaMail API

    course because Sun provides a sufficient set for free. Fundamentals of the JavaMail API Page 3 Presented by developerWorks, your source for great tutorials ibm.com/developerWorks Section 3. ...

    CSS The Definitive Guide 3rd Edition

    Author Eric Meyer tackles the subject with passion, exploring in detail each individual CSS property and how it interacts with other properties. You'll not only learn how to avoid common mistakes in ...

    最新Ehlib 5.2.84(含完整源代码,支持delphi XE)

    GroupPanelVisible: Boolean - Set this property to True to show special panel at the top part of the grid. Then the panel is thisible it is allowed to form group levels by mouse. Drag title of the ...

    Quickreport v5.05.1 for BC++ XE4 Full Source

    QuickReport is a set of components and controls that allow reports to be designed and previewed in the Delphi and C++ Builder IDEs. Applications including Quickreport functionality can then be ...

    FastReport.v4.9.81 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版

    separate settings for each frame line (properties Frame.LeftLine, TopLine, RightLine, BottomLine can be set in the object inspector) PNG images support (uncomment {$DEFINE PNG} in the frx.inc file) ...

    Sakemail

    He also send me a nice patch, so the bug is fixed.- Craig Manley added a ExtraHeaders property, please, use with care, it‘s just not valid to put inside it whatever thing.- The CC header was not ...

    cuteEditor6.0

    除了其强大的功能和方便的使用, 这里还有一些顶尖的技术因素是CuteEditor编辑器成为你编辑和发布Web内容的最佳选择: 界面简洁加载速度快 <br/>由于才有了很多优化方法,所以CuteEditor非常简单、小巧、...

    spring_MVC源码

    15. <context:property-placeholder location="classpath:/hibernate.properties" /> 16. 17. 18. class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> 19. <property name=...

    TRegware 4.02

    - Licensing options (LicenseType, LicenseSource properties) have been moved to a special class, TLicenseOptions. They will now appear under the LicenseOptions property. LicenseOptions are only ...

    EhLib5.0.13 最新的ehlib源码

    put compiled EhLibXX.BPL file into directory that is accessible through the search PATH (i.e. DOS "PATH" environment variable; for example, in the Windows\System directory). Add, (if needed) 'EhLib...

Global site tag (gtag.js) - Google Analytics