public abstract class SnmpValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COUNTER |
static int |
EOC |
static int |
GAUGE |
static int |
GET_NEXT_REQUEST_PDU |
static int |
GET_REQUEST_PDU |
static int |
GET_RESPONSE_PDU |
static int |
INTEGER |
static int |
IP_ADDRESS |
static int |
NULL |
static int |
OBJECT_IDENTIFIER |
static int |
OCTET_STRING |
static int |
OPAQUE |
static int |
SEQUENCE |
static int |
SET_REQUEST_PDU |
static int |
TIME_TICKS |
static int |
TRAP_PDU |
Constructor and Description |
---|
SnmpValue() |
Modifier and Type | Method and Description |
---|---|
static SnmpValue |
create(java.lang.Object obj) |
static SnmpValue |
create(java.lang.Object obj,
int type) |
static SnmpValue |
create(java.lang.Object obj,
java.lang.String typeStr) |
long |
getLong() |
java.lang.String |
getString() |
abstract int |
getType() |
protected void |
header(java.lang.StringBuilder sb,
int len) |
java.lang.String |
toAsn1() |
abstract void |
toAsn1(java.lang.StringBuilder sb) |
static java.lang.String |
typeName(int identifier) |
public static final int EOC
public static final int INTEGER
public static final int OCTET_STRING
public static final int NULL
public static final int OBJECT_IDENTIFIER
public static final int SEQUENCE
public static final int IP_ADDRESS
public static final int COUNTER
public static final int GAUGE
public static final int TIME_TICKS
public static final int OPAQUE
public static final int GET_REQUEST_PDU
public static final int GET_NEXT_REQUEST_PDU
public static final int GET_RESPONSE_PDU
public static final int SET_REQUEST_PDU
public static final int TRAP_PDU
public abstract void toAsn1(java.lang.StringBuilder sb)
public abstract int getType()
public static SnmpValue create(java.lang.Object obj)
public static SnmpValue create(java.lang.Object obj, java.lang.String typeStr)
public static SnmpValue create(java.lang.Object obj, int type)
public final java.lang.String toAsn1()
protected final void header(java.lang.StringBuilder sb, int len)
public long getLong()
public java.lang.String getString()
public static java.lang.String typeName(int identifier)