|
JoeSNMP API 0.3.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.protocols.snmp.SnmpUtil
public class SnmpUtil
This class provides a set of utilities that may be used by other package members. The util class maintains a dynamically created list of SnmpSyntax object that is uses to lookup received messages. The typeId() method of each SnmpSyntax object provides the comparision data for the received ASN.1 type.
SnmpInt32,
SnmpCounter32,
SnmpGauge32,
SnmpTimeTicks,
SnmpOctetString,
SnmpIPAddress,
SnmpObjectId| Field Summary | |
|---|---|
(package private) static java.util.ArrayList |
m_syntaxArray
The array of dynamically registred SnmpSyntax objects |
| Constructor Summary | |
|---|---|
SnmpUtil()
|
|
| Method Summary | |
|---|---|
(package private) static void |
dumpHex(java.io.PrintStream out,
byte[] data,
int offset,
int length)
Dumps an array of byte to the output string as a sequence of hexadecimal digits. |
static SnmpSyntax |
getSyntaxObject(byte asnType)
Used to dynamically lookup registered SnmpSyntax objects |
static boolean |
registerSyntax(SnmpSyntax obj)
Used to register a SnmpSyntax object with the SnmpUtil class. |
(package private) static void |
rotate(byte[] arrayBuf,
int begin,
int pivot,
int end)
Rotates a give buffer area marked by begin, pivot, and end. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static java.util.ArrayList m_syntaxArray
| Constructor Detail |
|---|
public SnmpUtil()
| Method Detail |
|---|
public static boolean registerSyntax(SnmpSyntax obj)
obj - The SnmpSyntax object to add
public static SnmpSyntax getSyntaxObject(byte asnType)
asnType - The ASN.1 type to search for
static void rotate(byte[] arrayBuf,
int begin,
int pivot,
int end)
buf - The buffer containing the data to rotatebegin - The start of the rotationpivot - The pivot point for the rotationend - The end of the rotational buffer
static void dumpHex(java.io.PrintStream out,
byte[] data,
int offset,
int length)
out - The output streamdata - The data to dumpoffset - The start location within the datalength - The length of data to dump
|
JoeSNMP API 0.3.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||