特性文件初始化与JNDI查询
现在让我们看一下读取特性文件的代码。
并列比较特性文件的工具
然后您有几个选项来装入应用程序特性文件。
Then you have several options to load the application properties file.
就我们的用途而言,我们将创建两个特性文件。
For our purposes, we will create a couple of properties files.
清单4显示了用两种不同方法装入特性文件的代码。
Listing 4 shows the code for loading the properties file two different ways.
以下是可以产生不同JNDI连接的特性文件项示例。
The following are examples of property file entries that will result in different JNDI connections.
快速显示实际运行时环境中的特性文件是很好的“健全”检查。
A quick display of a properties file in the actual runtime environment is a good sanity check.
有人有一个想法关于如何编写上下文文件和特性文件?。
Does anybody have an idea about how to write context file and feature file?
确保源语言中定义的所有键在目标语言的特性文件中都存在,反之亦然。
Ensures that all the keys defined in the source language exist in the target language property file, and vice-versa.
可以考虑向特性文件添加注释,那么翻译人员就可以知道给定消息的环境。
Consider adding notes to the property files so translators will know the context of a given message.
该元数据可以采取任何形式:特性文件、XML文件甚至特有的二进制格式。
This metadata may take any form: properties files, XML files, or even a proprietary binary format.
从资源束装入特性是一种与体系结构和平台无关的装入特性文件的方式。
Loading properties from a resource bundle is an architecture - and platform-independent way of loading a properties file.
确保源语言中定义的所有键在目标语言的特性文件中都存在,反之亦然。
Assures that all the keys defined in the source language exist in the target language property file and visa-versa.
为避免与环境设置的混淆,我始终用从特性文件读出的jndi值来设置特性实例。
To avoid confusion with conflicting environment Settings, I always set a properties instance with the JNDI values I've read out of my properties file.
要在翻译可用之前在开发中解决这个问题,您可以修改特性文件的文本以使其长度加倍。
To address this in development before a translation is available, you can modify the text of your properties files to double their lengths.
介绍了输出设备特性文件元素数据的构成,以及读取颜色数据的方法和过程。
The construction of output profile, the method and process of getting color dada were introduced.
当把html浏览器中的语言设置成英语时,该文件连同两个特性文件将一起显示
This along with the two properties files give us the following when our language is set to English in our html browser
这个方法将在CLASSPATH上查找特性文件,因此有必要将包含该文件的目录放到类路径中。
This method will find the properties file on the classpath, so it is necessary to put the directory with this file in the classpath.
本文提出了通过即时建立IC C色彩特性文件,对自然光下拍摄的数字图像进行色彩校正的方法。
We advanced a method to correcting the color of digital images were captured under the daylight by establishing ICC Profile immediately.
RBManager不包括并列特性文件视图(至今?),但它确实有助于管理翻译中通常涉及的许多资源文件。
RBManager doesn't include a size-by-size property files view (yet?), but it definitely helps manage the many resource files typically involved in a translation.
至于jndi上下文,通常的做法是将参数字符串(清单2中第二和第三行)存储在特性文件中然后在需要时读取。
As for the JNDI context, it is common practice to store the parameter strings (Lines 2 and 3 of Listing 2) in a properties file and read them in as needed.
建议您将应用程序所有的运行时配置参数都放在一个应用程序特性文件中并将JNDI参数包含在该文件中。
I recommend that you place all your application's run-time configuration parameters in one application properties file and include the JNDI parameters there.
选择SourceLanguage列表中的一个特性文件将自动选中Target Language列表中的对应文件,并显示其按键排序的内容。
Selecting a properties file found in the list of Source Language list will automatically select the corresponding file in the Target Language list, and display their contents sorted by key.
这个文件必须放置在每个包含使用JSP 2.1特性的标记文件的目录中。
This file must be placed in each directory that contains tag files using JSP 2.1 features.
是否有敏感数据,具有额外安全特性的文件系统可能能够进一步保护它们?
Do you have sensitive data that might benefit from file systems with extra security features?
删除\60 \ \文件中的过期的特性信息。
图3显示了使用细粒度更新特性进行文件更新和同步的流程。
Figure 3 shows the flow of updating and synchronizing the file using the fine-grained update feature.
可以利用文件能力特性将能力分配给程序。
With file capabilities, you can assign capabilities to a program.
然而,考虑到这些文件的短暂特性,这种可能性不大。
However, given the brief and transient nature of these files, this is less likely.
应用推荐