|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.sun.jaw.snmp.common.SnmpValue
|
+--com.sun.jaw.snmp.common.SnmpOid
|
+--com.sun.jaw.snmp.common.SnmpIpAddress
The SnmpIpAddress class represents an SNMP IpAddress.
| Fields inherited from class com.sun.jaw.snmp.common.SnmpOid |
componentCount,
components,
meta |
| Constructor Summary | |
SnmpIpAddress(byte[] bytes)
Constructs a new SnmpIpAddress from the specified bytes array. |
|
SnmpIpAddress(long addr)
Constructs a new SnmpIpAddress from the specified long value. |
|
SnmpIpAddress(long b1,
long b2,
long b3,
long b4)
Constructs a new SnmpIpAddress from four long values. |
|
SnmpIpAddress(java.lang.String dotAddress)
Constructs a new SnmpIpAddress from a dot-formatted String. |
|
| Method Summary | |
static void |
appendToOid(SnmpOid source,
SnmpOid dest)
Appends an SnmpOid representing an SnmpIpAddress to another oid. |
byte[] |
byteValue()
Converts the address value to its byte array form. |
java.lang.String |
getTypeName()
Returns a textual description of the type object. |
static int |
nextOid(long[] index,
int start)
Scans an index oid, skip the address value and returns the position of the next value. |
java.lang.String |
stringValue()
Converts the address to its String form. |
static SnmpOid |
toOid(long[] index,
int start)
Extracts the ip address from an index oid and returns its value converted as an SnmpOid. |
| Methods inherited from class com.sun.jaw.snmp.common.SnmpOid |
addToOid,
addToOid,
append,
append,
clone,
compareTo,
duplicate,
enlargeIfNeeded,
equals,
getLength,
hashCode,
insert,
insert,
isValid,
longValue,
resolveVarName,
toBoolean,
toByte,
toInteger,
toLong,
toOid,
toString |
| Methods inherited from class com.sun.jaw.snmp.common.SnmpValue |
toAsn1String |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public SnmpIpAddress(byte[] bytes)
throws java.lang.IllegalArgumentException
SnmpIpAddress from the specified bytes array.bytes - The four bytes composing the address.public SnmpIpAddress(long addr)
SnmpIpAddress from the specified long value.addr - The initialization value.
public SnmpIpAddress(java.lang.String dotAddress)
throws java.lang.IllegalArgumentException
SnmpIpAddress from a dot-formatted String.
The dot-formatted String is like x.x.x.x .dotAddress - The initialization value.
public SnmpIpAddress(long b1,
long b2,
long b3,
long b4)
SnmpIpAddress from four long values.b1 - Byte 1.b2 - Byte 2.b3 - Byte 3.b4 - Byte 4.| Method Detail |
public byte[] byteValue()
public java.lang.String stringValue()
String form.
Same as toString(). Exists only to follow a naming scheme.String representation of the value.
public static SnmpOid toOid(long[] index,
int start)
throws SnmpStatusException
SnmpOid.index - The index array.start - The position in the index array.
public static int nextOid(long[] index,
int start)
throws SnmpStatusException
index - The index array.start - The position in the index array.
public static void appendToOid(SnmpOid source,
SnmpOid dest)
SnmpOid representing an SnmpIpAddress to another oid.source - An oid representing an SnmpIpAddress value.dest - Where source should be appened.public final java.lang.String getTypeName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||