`
oywl2008
  • 浏览: 1052065 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Property file natural lines and logical lines "\"

 
阅读更多

Properties are processed in terms of lines. There are two kinds of line, natural lines and logical lines. A natural line is defined as a line of characters that is terminated either by a set of line terminator characters (\n or \r or \r\n) or by the end of the stream. A natural line may be either a blank line, a comment line, or hold all or some of a key-element pair. A logical line holds all the data of a key-element pair, which may be spread out across several adjacent natural lines by escaping the line terminator sequence with a backslash character \. Note that a comment line cannot be extended in this manner; every natural line that is a comment must have its own comment indicator, as described below. Lines are read from input until the end of the stream is reached.

 

 

As another example, the following three lines specify a single property:

 

 fruits                           apple, banana, pear, \
                                  cantaloupe, watermelon, \
                                  kiwi, mango
 

The key is "fruits" and the associated element is:

 

"apple, banana, pear, cantaloupe, watermelon, kiwi, mango"

 

Note that a space appears before each \ so that a space will appear after each comma in the final result; the \, line terminator, and leading white space on the continuation line are merely discarded and are not replaced by one or more other characters.  

 

from : http://download.oracle.com/javase/6/docs/api/java/util/Properties.html

 

分享到:
评论

相关推荐

    Multiagent systems:algorithmic, game-theoretic, and logical foundations

    Multiagent systems:algorithmic, game-theoretic, and logical foundations

    多主体系统:算法,博弈论和逻辑基础Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations

    全面介绍了多智能体系统,这本教科书是从计算机科学的角度从运筹学,博弈论,经济学,逻辑,甚至哲学和语言学写的,而思想汇集。

    代码统计工具(LocMetrics)

    LocMetrics counts total lines of code (LOC), blank lines of code (BLOC), comment lines of code (CLOC), lines with both code and comments (C&SLOC), logical source lines of code (SLOC-L), McCabe VG ...

    Database Modeling and Design, Fifth Edition: Logical Design

    本书《Database Modeling and Design: Logical Design》(第五版)于2011年出版,是一本关于数据库逻辑设计的经典著作。该书由Toby J. Teorey、Sam S. Lightstone、Thomas P. Nadeau 和 H. V. Jagadish 共同编写。 ...

    Logical Channel Descriptor and Allocation of Logical Channel Numbers

    在数字电视广播领域,特别是澳大利亚的免费地面数字电视传输中,逻辑信道描述符(Logical Channel Descriptor,简称LCH)与逻辑信道号(Logical Channel Number,简称LCN)的使用与分配是至关重要的技术细节。...

    NL2LF:The Resources for "Natural Language to Logical Form" ; "自然语言转逻辑形式"研究资料收集

    The Resources for Natural Language to Logical Form Research, Focus on NL2SQL first. "自然语言转逻辑形式"研究资料收集: 本阶段主要以NL2SQL的研究为主, 主要包括评测公开数据集、相关论文和部分代码实现、相关...

    Embedding Logical Queries on Knowledge Graphs.pdf

    edge prediction and handle more complex logical queries, which might involve multiple unobserved edges, entities, and variables. For instance, given an incomplete biological knowledge graph, we might...

    logicaldoc-community-installer-8.3.4.zip

    LogicalDOC是文档管理和协作系统。该软件具有许多功能,可以为任何组织和个人安全,安全地组织,索引,检索,控制和分发重要的业务文档。 公司使用纸质流程(例如打印,邮寄和手动归档纸质文档)的日子已经一去不...

    matlab开发-logical2cellstrcellstr2logical

    标题提到的"logical2cellstr"和"cellstr2logical"是两个关键函数,分别用于在逻辑数组和包含字符串"true"/"false"的单元格数组之间进行转换。这两个函数在处理逻辑数据表示时非常有用,尤其是在数据可视化、数据分析...

    Database Logical

    database logical script

    logical effort

    very good doc about logical effort

    informix logical log and physical log

    Informix 系统中有两种非常重要的磁盘构件:物理日志(physical log)和逻辑日志(logical log)。这两种日志都是 Informix 系统中的关键组件,它们 Plays a crucial role in ensuring the integrity and ...

    Logical Replication

    Logical Replication属于逻辑复制,适用于数据库实例的部分(单个数据库或者某些表)的复制,目前只支持表复制。 最大的不同就是可以向下游节点写入数据,也可以将多个数据库实例的数据,同步到一个目标数据库等等

    logicaldoc-community-installer-8.3.4.exe

    LogicalDOC文档管理-DMS 智能和开源文档管理系统 LogicalDOC是文档管理和协作系统。该软件具有许多功能,可以为任何组织和个人安全,安全地组织,索引,检索,控制和分发重要的业务文档。 公司使用纸质流程...

    UBS Logical

    标题“UBS Logical”指的是一个逻辑测试,通常涉及一系列图形或符号的规律性变化,以及对于这些变化的推理分析。这类测试在求职过程中,尤其是像UBS这样的大型国际金融公司,是评估应聘者逻辑思维和问题解决能力的一...

    Red Hat Enterprise Linux 6 Logical Volume Manager Administration

    文档中提到的“New and Changed Features”部分可能会详细介绍在当前版本中新增或者修改的功能。这些新功能可能包括对LVM工具和命令的改进,或是在集群环境中运行LVM的新支持特性。这些更新通常旨在增强LVM的功能性...

    开源文档管理系统LogicalDOC v6.3.rar

    LogicalDOC是一个采用Java开发的基于网页的文档管理系统,提供了快速的索引功能和基于浏览器的查询功能。提供 .NET和PHP版本,附带论坛和WebDAV的接口,支持文档导入导出到ZIP文件和邮箱文件。 文件夹可分层次组织,...

    fuzzy logical学习资料

    ### 模糊逻辑(Fuzzy Logic):一种更贴近人类思维的计算机编程方式 #### 引言 模糊逻辑(Fuzzy Logic),作为一种多值逻辑体系,由加州大学伯克利分校的计算机科学教授Lotfi A....与传统的二元逻辑(即非黑即白、非...

Global site tag (gtag.js) - Google Analytics