|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cryptix.asn1.encoding.PackageProperties
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 $
Field Summary | |
(package private) static boolean |
GLOBAL_DEBUG
|
Constructor Summary | |
PackageProperties()
|
Method Summary | |
(package private) static void |
|
(package private) static int |
getLevel(java.lang.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. |
(package private) static java.io.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. |
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. User indicates this by setting the tracing boolean
property for label in the (algorithm).properties
file. |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean GLOBAL_DEBUG
Constructor Detail |
public PackageProperties()
Method Detail |
static void()
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |