|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--snmp.message.SnmpMessageUtil
This utility class provides methods to decode and encode the SNMP data packet. Some of the code are duplicated to org.opennms.protocols.snmp.SnmpUtil.
| Field Summary | |
(package private) static java.util.ArrayList |
m_syntaxArray
The array of dynamically registred SnmpSyntax objects |
static long |
UnsignedInt32Max
|
static long |
UnsignedInt32Min
|
| Constructor Summary | |
SnmpMessageUtil()
|
|
| Method Summary | |
(package private) static void |
copy(byte[] src,
int srcOffset,
byte[] dest,
int destOffset,
int count)
Used to copy data from one buffer to another. |
(package private) static void |
copy(int[] src,
int srcOffset,
int[] dest,
int destOffset,
int count)
Used to copy data from one buffer to another. |
static void |
dumpHex(java.io.PrintStream out,
byte[] data,
int offset,
int length)
Dumps the data to the PrintStream object. |
static org.opennms.protocols.snmp.SnmpSyntax |
getSyntaxObject(byte asnType)
Used to dynamically lookup registered SnmpSyntax objects |
static boolean |
registerSyntax(org.opennms.protocols.snmp.SnmpSyntax obj)
Used to register a SnmpSyntax object with the SnmpUtil class. |
static void |
rotate(byte[] buf,
int begin,
int pivot,
int end)
Rotates a give buffer area marked by begin, pivot, and end. |
static void |
rotate(int[] buf,
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 |
public static final long UnsignedInt32Min
public static final long UnsignedInt32Max
static java.util.ArrayList m_syntaxArray
| Constructor Detail |
public SnmpMessageUtil()
| Method Detail |
static void copy(byte[] src,
int srcOffset,
byte[] dest,
int destOffset,
int count)
src - The source buffersrcOffset - The offset of the first byte in the source bufferdest - The destination bufferdestOffset - The offset of the first byte in the destination buffercount - The number of elements to copy
static void copy(int[] src,
int srcOffset,
int[] dest,
int destOffset,
int count)
src - The source buffersrcOffset - The offset of the first byte in the source bufferdest - The destination bufferdestOffset - The offset of the first byte in the destination buffercount - The number of elements to copy
public static void rotate(byte[] buf,
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
public static void rotate(int[] buf,
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 bufferpublic static boolean registerSyntax(org.opennms.protocols.snmp.SnmpSyntax obj)
obj - The SnmpSyntax object to add
public static org.opennms.protocols.snmp.SnmpSyntax getSyntaxObject(byte asnType)
asnType - The ASN.1 type to search for
public static void dumpHex(java.io.PrintStream out,
byte[] data,
int offset,
int length)
|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||