public class SnmpUtil
extends java.lang.Object
SnmpInt32,
SnmpCounter32,
SnmpGauge32,
SnmpTimeTicks,
SnmpOctetString,
SnmpIPAddress,
SnmpObjectId| Modifier and Type | Field and Description |
|---|---|
(package private) static java.util.ArrayList |
m_syntaxArray
The array of dynamically registred SnmpSyntax objects
|
| Constructor and Description |
|---|
SnmpUtil() |
| Modifier and Type | Method and Description |
|---|---|
(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.
|
static java.util.ArrayList m_syntaxArray
public static boolean registerSyntax(SnmpSyntax obj)
obj - The SnmpSyntax object to addpublic static SnmpSyntax getSyntaxObject(byte asnType)
asnType - The ASN.1 type to search forstatic 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 bufferstatic 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 dumpGenerated by iurt on 2013.