|
|||||||||
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.SnmpString
The SnmpString
class represents an SNMP string.
Field Summary | |
protected byte[] |
value
This is the bytes array of the string value. |
Constructor Summary | |
SnmpString()
Constructs a new empty SnmpString . |
|
SnmpString(byte[] v)
Constructs a new SnmpString from the specified bytes array. |
|
SnmpString(java.lang.Byte[] v)
Constructs a new SnmpString from the specified Bytes array. |
|
SnmpString(java.lang.String v)
Constructs a new SnmpString from the specified String value. |
Method Summary | |
static void |
appendToOid(SnmpOid source,
SnmpOid dest)
Appends an SnmpOid representing an SnmpString to another oid. |
byte[] |
byteValue()
Returns the bytes array of this SnmpString . |
java.lang.Object |
clone()
Clones the SnmpString object, making a copy of its data. |
SnmpValue |
duplicate()
Performs a clone action. |
java.lang.String |
getTypeName()
Returns a textual description of the type object. |
static int |
nextOid(long[] index,
int start)
Scans an index oid, skips the string value and returns the position of the next value. |
java.lang.Byte[] |
toByte()
Converts the string value to its array of Bytes form. |
SnmpOid |
toOid()
Converts the string value to its SnmpOid form. |
static SnmpOid |
toOid(long[] index,
int start)
Extracts the string from an index oid and returns its value converted as an SnmpOid . |
java.lang.String |
toString()
Converts the string value to its String form. |
Methods inherited from class com.sun.jaw.snmp.common.SnmpValue |
toAsn1String |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected byte[] value
Constructor Detail |
public SnmpString()
SnmpString
.public SnmpString(byte[] v)
SnmpString
from the specified bytes array.v
- The bytes composing the string value.public SnmpString(java.lang.Byte[] v)
SnmpString
from the specified Bytes
array.v
- The Bytes
composing the string value.public SnmpString(java.lang.String v)
SnmpString
from the specified String
value.v
- The initialization value.Method Detail |
public byte[] byteValue()
SnmpString
.public java.lang.Byte[] toByte()
Bytes
form.Bytes
representation of the value.public java.lang.String toString()
String
form.String
representation of the value.public SnmpOid toOid()
SnmpOid
form.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 SnmpString
to another oid.source
- An oid representing an SnmpString
value.dest
- Where source should be appened.public final SnmpValue duplicate()
SnmpValue
interface.public java.lang.Object clone()
SnmpString
object, making a copy of its data.public java.lang.String getTypeName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |