21.6
java.util.Properties
THE PACKAGE JAVA.UTIL
21.6.4
public String getProperty(String key)
If there is an entry in this
Properties
 table with
key
 as its key, the associated
element is returned. Otherwise, if this
Properties
 table has a defaults table, then
whatever its
getProperty
 method returns is returned. Otherwise,
null
 is
returned.
21.6.5
public String getProperty(String key,
String defaultValue)
If there is an entry in this
Properties
 table with
key
 as its key, the associated
element is returned. Otherwise, if this
Properties
 table has a defaults table, then
whatever its
getProperty
 method returns is returned. Otherwise,
defaultValue
is returned.
21.6.6
public Enumeration propertyNames()
An
Enumeration
 ( 21.1) is returned that will generate all the keys for which this
Properties
 table could supply an associated element. If this
Properties
 table
has a defaults table ( 21.6.1), then keys for which the defaults table has entries are
also supplied by the
Enumeration
, and so on, recursively; but no key is supplied
by the
Enumeration
 more than once.
21.6.7
public void load(InputStream in) throws IOException
Properties (key and element pairs) are read from the input stream:
Runtime.getRuntime().getLocalizedInputStream(in)
and added to this
Properties
 table. See the
getLocalizedInputStream
method of
Runtime
 ( 20.16.15).
Every property occupies one line of the input stream. Each line is terminated
by a line terminator (
\n
 or
\r
 or
\r\n
). Lines from the input stream are processed
until end of file is reached on the input stream.
A line that contains only whitespace ( 20.5.19) or whose first non whitespace
character is an ASCII
#
 or
!
 is ignored (thus,
#
 or
!
 indicate comment lines).
Every line other than a blank line or a comment line describes one property to
be added to the table (except that if a line ends with \, then the following line is
treated as a continuation line, as described below). The key consists of all the
characters in the line starting with the first non whitespace character and up to, but
not including, the first ASCII
=
,
:
, or whitespace character. Any whitespace after
640






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved