|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.SnmpProperties
class SnmpProperties
| Field Summary | |
|---|---|
(package private) static java.lang.String |
PRODUCT_NAME
The common name for this class library. |
(package private) static java.lang.String[] |
PROPERTIES_FILES
The names of the properties files. |
| Method Summary | |
|---|---|
static int |
getIntermediateVersion()
Returns the intermediate version of this release of Snmp Library. |
static int |
getMajorVersion()
Returns the major version of this release of Snmp Library. |
static int |
getMinorVersion()
Returns the minor version of this release of Snmp Library. |
static int |
getPatchVersion()
Returns the patch version of this release of Snmp Library. |
(package private) static java.lang.String |
getProductName()
|
static java.lang.String |
getProperty(java.lang.String key)
Gets the value of a property. |
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. |
static java.lang.String |
getReleaseDate()
Returns the release date of this version of Snmp Library, as a string in the form "yyyy/mm/dd". |
static java.lang.String |
getVersionString()
Returns a string describing this version of Snmp Library. |
static boolean |
isVersionAtLeast(int major,
int minor,
int intermediate)
Returns true iff this version of Snmp Library is at least the given version. |
static void |
list(java.io.PrintStream out)
Lists the properties to the PrintStream out. |
static void |
list(java.io.PrintWriter out)
Lists the properties to the PrintWriter out. |
static void |
main(java.lang.String[] args)
Prints the SNMP Library version string, whether SNMP Library is installed correctly, and the location of the library directory. |
static java.util.Enumeration |
propertyNames()
Returns an enumeration of all the property names. |
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 java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Set the property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final java.lang.String PRODUCT_NAME
static final java.lang.String[] PROPERTIES_FILES
| Method Detail |
|---|
static java.lang.String getProductName()
public static int getMajorVersion()
public static int getMinorVersion()
public static int getIntermediateVersion()
public static int getPatchVersion()
public static boolean isVersionAtLeast(int major,
int minor,
int intermediate)
public static java.lang.String getReleaseDate()
public static java.lang.String getVersionString()
public static void main(java.lang.String[] args)
public 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.
public static java.lang.String getProperty(java.lang.String key)
public static java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
public static java.util.Enumeration propertyNames()
public static void list(java.io.PrintStream out)
public static java.lang.String setProperty(java.lang.String key,
java.lang.String value)
public static void list(java.io.PrintWriter out)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||