public class AsnOctets extends AsnObject
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
CALFORMAT |
static String |
HEX_PREFIX |
static AsnOctetsPrintableFace |
printableObject |
contentsLength, debug, headerLength, isCorrect, startPos, typeASN_APPLICATION, ASN_BIT_STR, ASN_BIT8, ASN_BOOLEAN, ASN_CONSTRUCTOR, ASN_CONTEXT, ASN_EXTENSION_ID, ASN_INTEGER, ASN_LONG_LEN, ASN_NULL, ASN_OBJECT_ID, ASN_OCTET_STR, ASN_PRIMITIVE, ASN_PRIVATE, ASN_SEQUENCE, ASN_SET, ASN_UNIVERSAL, CONS_SEQ, COUNTER, COUNTER64, GAUGE, GET_REQ_MSG, GET_RPRT_MSG, GET_RSP_MSG, GETBULK_REQ_MSG, GETNEXT_REQ_MSG, INFORM_REQ_MSG, INTEGER, IPADDRESS, NSAP_ADDRESS, NULLOBJ, OBJID, OBSOLETED_RFC1442_UINTEGER32, OPAQUE, SET_REQ_MSG, SMI_V2_UINTEGER32, SNMP_ERR_AUTHORIZATIONERR, SNMP_ERR_BADVALUE, SNMP_ERR_COMMITFAILED, SNMP_ERR_DECODING_EXC, SNMP_ERR_DECODINGASN_EXC, SNMP_ERR_DECODINGPKTLNGTH_EXC, SNMP_ERR_GENERR, SNMP_ERR_INCONSISTENTNAME, SNMP_ERR_INCONSISTENTVALUE, SNMP_ERR_NOACCESS, SNMP_ERR_NOCREATION, SNMP_ERR_NOERROR, SNMP_ERR_NOSUCHNAME, SNMP_ERR_NOTWRITABLE, SNMP_ERR_READONLY, SNMP_ERR_RESOURCEUNAVAILABLE, SNMP_ERR_TOOBIG, SNMP_ERR_UNDOFAILED, SNMP_ERR_WRONGENCODING, SNMP_ERR_WRONGLENGTH, SNMP_ERR_WRONGTYPE, SNMP_ERR_WRONGVALUE, SNMP_TRAP_AUTHFAIL, SNMP_TRAP_COLDSTART, SNMP_TRAP_EGPNEIGHBORLOSS, SNMP_TRAP_ENTERPRISESPECIFIC, SNMP_TRAP_LINKDOWN, SNMP_TRAP_LINKUP, SNMP_TRAP_WARMSTART, SNMP_VAR_ENDOFMIBVIEW, SNMP_VAR_NOSUCHINSTANCE, SNMP_VAR_NOSUCHOBJECT, SNMP_VERSION_1, SNMP_VERSION_2c, SNMP_VERSION_3, STRING, TIMETICKS, TRP_REQ_MSG, TRPV2_REQ_MSG| Constructor and Description |
|---|
AsnOctets(byte[] s) |
AsnOctets(byte[] s,
byte t) |
AsnOctets(Calendar cal) |
AsnOctets(char[] s) |
AsnOctets(Inet4Address iad,
byte t) |
AsnOctets(InetAddress iad) |
AsnOctets(InputStream in,
int len) |
AsnOctets(String s) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object anObject) |
byte[] |
getBytes() |
Calendar |
getCalendar() |
InetAddress |
getIpAddress() |
String |
getValue() |
int |
hashCode() |
static void |
setHexPrefix(String newPrefix) |
static void |
setPrintable(AsnOctetsPrintableFace obj) |
String |
toCalendar() |
String |
toDisplayString() |
String |
toHex() |
String |
toInternationalDisplayString() |
String |
toInternationalDisplayString(AsnOctetsPrintableFace face) |
String |
toIpAddress() |
String |
toString() |
String |
toString(AsnOctetsPrintableFace face) |
long[] |
toSubOid(boolean length_implied) |
getRespType, getRespTypeString, setDebugpublic static String HEX_PREFIX
public static SimpleDateFormat CALFORMAT
public static AsnOctetsPrintableFace printableObject
public AsnOctets(byte[] s)
throws IllegalArgumentException
IllegalArgumentExceptionpublic AsnOctets(byte[] s,
byte t)
throws IllegalArgumentException
IllegalArgumentExceptionpublic AsnOctets(char[] s)
public AsnOctets(String s)
public AsnOctets(InetAddress iad) throws IllegalArgumentException
IllegalArgumentExceptionpublic AsnOctets(Inet4Address iad, byte t) throws IllegalArgumentException
IllegalArgumentExceptionpublic AsnOctets(Calendar cal)
public AsnOctets(InputStream in, int len) throws IOException
IOExceptionpublic static void setHexPrefix(String newPrefix)
public static void setPrintable(AsnOctetsPrintableFace obj)
public String getValue()
public byte[] getBytes()
public String toString(AsnOctetsPrintableFace face)
public String toIpAddress()
public InetAddress getIpAddress() throws RuntimeException
RuntimeExceptionpublic String toHex()
public String toDisplayString()
public String toInternationalDisplayString()
public String toInternationalDisplayString(AsnOctetsPrintableFace face)
public String toCalendar() throws RuntimeException
RuntimeExceptionpublic Calendar getCalendar() throws RuntimeException
RuntimeExceptionpublic long[] toSubOid(boolean length_implied)
Copyright © 2019. All rights reserved.