com.adventnet.snmp.beans
Class Parsers

java.lang.Object
  extended by com.adventnet.snmp.beans.Parsers

public class Parsers
extends java.lang.Object

A class for Common parsing functions


Field Summary
static java.lang.String source
           
 
Constructor Summary
Parsers()
           
 
Method Summary
(package private) static void allVarBinds(java.util.Vector varbinds, java.lang.StringBuffer s, boolean wLabel, boolean wValue, MibOperations mibOps)
           
static java.lang.String clearWhiteSpace(java.lang.String exp)
          To get rid of leading and trailing white space
static boolean matchField(java.lang.String expr, java.lang.String value)
          Match a value againt the match expression.
static java.lang.String parseTrapDefn(MibOperations mibOps, java.lang.String outDefn, SnmpPDU pdu)
           
static java.lang.String parseTrapDefn(java.lang.String outDefn, SnmpPDU pdu)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public static java.lang.String source
Constructor Detail

Parsers

public Parsers()
Method Detail

parseTrapDefn

public static java.lang.String parseTrapDefn(java.lang.String outDefn,
                                             SnmpPDU pdu)

parseTrapDefn

public static java.lang.String parseTrapDefn(MibOperations mibOps,
                                             java.lang.String outDefn,
                                             SnmpPDU pdu)

allVarBinds

static void allVarBinds(java.util.Vector varbinds,
                        java.lang.StringBuffer s,
                        boolean wLabel,
                        boolean wValue,
                        MibOperations mibOps)

clearWhiteSpace

public static java.lang.String clearWhiteSpace(java.lang.String exp)
To get rid of leading and trailing white space


matchField

public static boolean matchField(java.lang.String expr,
                                 java.lang.String value)
Match a value againt the match expression. Returns true if matched.