cryptix.asn1.lang
Class PackageProperties
java.lang.Object
cryptix.asn1.lang.PackageProperties
public class PackageProperties
extends java.lang.Object
This class acts as a central repository for a package specific
properties. It reads an (package).properties file containing
package-specific properties.
Copyright ©1997, 1998, 1999
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1 $
- David Hopwood
- Jill Baker
- Raif S. Naffah
(package private) static int | getLevel(String label) - Returns the debug level for a given class.
|
(package private) static PrintWriter | getOutput() - Returns the PrintWriter to which tracing and debugging output is to
be sent.
|
static String | getProperty(String key) - Returns the value of a property for this algorithm.
|
static String | getProperty(String key, String value) - Returns the value of a property for this algorithm, or return
value if the property was not set.
|
(package private) static boolean | isTraceable(String label) - Returns true if tracing is requested for a given class.
|
static void | list(PrintStream out) - Lists algorithm properties to the PrintStream out.
|
static void | list(PrintWriter out) - Lists algorithm properties to the PrintWriter out.
|
static Enumeration | propertyNames()
|
GLOBAL_DEBUG
(package private) static final boolean GLOBAL_DEBUG
getLevel
(package private) static int getLevel(String label)
Returns the debug level for a given class.
User indicates this by setting the numeric property with key
"
Debug.Level.label
".
If this property is not set, "
Debug.Level.*
" is looked up
next. If neither property is set, or if the first property found is
not a valid decimal integer, then this method returns 0.
label
- The name of a class.
- The required debugging level for the designated class.
getOutput
(package private) static PrintWriter getOutput()
Returns the PrintWriter to which tracing and debugging output is to
be sent.
User indicates this by setting the property with key
Output
to the literal
out
or
err
.
By default or if the set value is not allowed,
System.err
will be used.
getProperty
public static String getProperty(String key)
Returns the value of a property for this algorithm.
getProperty
public static String getProperty(String key,
String value)
Returns the value of a property for this algorithm, or return
value if the property was not set.
isTraceable
(package private) static boolean isTraceable(String label)
Returns true if tracing is requested for a given class.
User indicates this by setting the tracing
boolean
property for
label in the
(algorithm).properties
file. The property's key is "
Trace.label
".
label
- The name of a class.
- True iff a boolean true value is set for a property with
the key
Trace.label
.
list
public static void list(PrintStream out)
Lists algorithm properties to the PrintStream out.
list
public static void list(PrintWriter out)
Lists algorithm properties to the PrintWriter out.
propertyNames
public static Enumeration propertyNames()