Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse JET Guide
Previous Page Home Next Page


Additional XPath Functions


Reutnr a string encoded to conform to rules for Java properties files

Function Summary
minimal arguments String propertiesEncode (String text)
all arguments String propertiesEncode (String text, boolean leadingSpacesOnly)

Required Arguments
String text The text to be encoded. Should be either a key name or a property value.

Optional Arguments
boolean leadingSpacesOnly If true, then only leading spaces are encode (by adding a \). The default is false. For property value names, readability may be improved by specifying true(). Note that property key names containing spaces should not be encoded with leadSpacesOnly set to true.

propertiesEncode(" a whole bunch of spaces ")

returns the string "\ a\ whole\ bunch\ of\ spaces\ "

propertiesEncode(" a whole bunch of spaces ", true())

returns the string "\ a whole bunch of spaces "

© Copyright IBM Corporation 2008. All Rights Reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire