class IJCE_Properties
extends java.lang.Object
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
LIB_DIRNAME
The name of the directory in which the properties file and (if
applicable) native libraries are found.
|
(package private) static java.lang.String |
PRODUCT_NAME
The common name for this class library.
|
(package private) static java.lang.String[] |
PROPERTIES_FILES
The filename of the properties file.
|
Constructor and Description |
---|
IJCE_Properties() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
getLibraryPath()
Returns the path of the library directory.
|
(package private) static java.lang.String |
getProperty(java.lang.String key)
Gets the value of a property.
|
(package private) static java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Gets the value of a property, or returns defaultValue if the
property was not set.
|
(package private) static void |
list(java.io.PrintStream out)
Lists the properties to the PrintStream out.
|
(package private) static void |
list(java.io.PrintWriter out)
Lists the properties to the PrintWriter out.
|
(package private) static java.util.Enumeration |
propertyNames()
Returns an enumeration of all the property names.
|
(package private) static void |
save(java.io.OutputStream os,
java.lang.String comment)
Saves the properties to the OutputStream os, in the format
used by
java.util.Properties.save . |
static final java.lang.String PRODUCT_NAME
static final java.lang.String LIB_DIRNAME
static final java.lang.String[] PROPERTIES_FILES
static java.lang.String getLibraryPath() throws java.io.IOException
The returned path is always absolute, and ends with a file separator character (e.g. "/" on Unix).
java.io.IOException
- if an error occurred during intialization,
preventing the path from being determined.static void save(java.io.OutputStream os, java.lang.String comment)
java.util.Properties.save
. The string comment
is written as a comment in the first line of the output.static java.lang.String getProperty(java.lang.String key)
static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
static java.util.Enumeration propertyNames()
static void list(java.io.PrintStream out)
static void list(java.io.PrintWriter out)