public class PackageProperties
extends java.lang.Object
Copyright ©1997, 1998, 1999
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1 $
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
GLOBAL_DEBUG |
Constructor and Description |
---|
PackageProperties() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
getLevel(java.lang.String label)
Returns the debug level for a given class.
|
(package private) static java.io.PrintWriter |
getOutput()
Returns the PrintWriter to which tracing and debugging output is to
be sent.
|
static java.lang.String |
getProperty(java.lang.String key)
Returns the value of a property for this algorithm.
|
static java.lang.String |
getProperty(java.lang.String key,
java.lang.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(java.lang.String label)
Returns true if tracing is requested for a given class.
|
static void |
list(java.io.PrintStream out)
Lists algorithm properties to the PrintStream out.
|
static void |
list(java.io.PrintWriter out)
Lists algorithm properties to the PrintWriter out.
|
static java.util.Enumeration |
propertyNames() |
static final boolean GLOBAL_DEBUG
public static java.lang.String getProperty(java.lang.String key)
public static java.lang.String getProperty(java.lang.String key, java.lang.String value)
public static void list(java.io.PrintStream out)
public static void list(java.io.PrintWriter out)
public static java.util.Enumeration propertyNames()
static boolean isTraceable(java.lang.String label)
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.Trace.label
.static int getLevel(java.lang.String label)
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.static java.io.PrintWriter getOutput()
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.