My Niche

This is a blog to sketch out my cool niche carved at my work. The continuous shaping of the niche in my everyday tour will find its way here.

Name:
Location: Hartford, CT, United States

Love to read, lying on my bed on a pleasant saturday morning as the early sunrays filter through my window.. Love to be a part of the worship team in sunday service.. Love to stike the guitar to some tune in an unknown chord.. Love to dance n play with my li'l niece.. Love to talk w my friends and share all new happenings w them.. Love my God, parents and sis.

Friday, August 17, 2007

Java.....aa ah!

The Properties class represents a persistent set of properties. The
Properties can be saved to a stream or loaded from a stream. Each
key and its corresponding value in the property list is a string.
A property list can contain another property list as its "defaults"; this
second property list is searched if the property key is not found in the
original property list.
Because Properties inherits from Hashtable, the put and putAll
methods can be applied to a Properties object. Their use is strongly
discouraged as they allow the caller to insert entries whose keys or
values are not Strings. The setProperty method should be used
instead. If the store or save method is called on a "compromised"
Properties object that contains a non-String key or value, the call will
fail.

The load and store methods load and store properties in a simple line-
oriented format specified below. This format uses the ISO 8859-1
character encoding. Characters that cannot be directly represented in
this encoding can be written using Unicode escapes ; only a single 'u'
character is allowed in an escape sequence. The native2ascii tool can
be used to convert property files to and from other character
encodings.

The loadFromXML(InputStream) and storeToXML(OutputStream, String,
String) methods load and store properties in a simple XML format. By
default the UTF-8 character encoding is used, however a specific
encoding may be specified if required. An XML properties document
has the following DOCTYPE declaration:

Note that the system URI (http://java.sun.com/dtd/properties.dtd) is not
accessed when exporting or importing properties; it merely serves as
a string to uniquely identify the DTD, which is:














See Also:
native2ascii tool for Solaris
native2ascii tool for Windows
Author:
Arthur van Hoff
Michael McCloskey
Since:
JDK1.0
@version
1.84, 05/18/04

0 Comments:

Post a Comment

<< Home