All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.snmp.common.SnmpString
java.lang.Object
|
+----com.sun.jaw.snmp.common.SnmpValue
|
+----com.sun.jaw.snmp.common.SnmpString
- public class SnmpString
- extends SnmpValue
This class contains octet values.
-
SnmpString()
- Constructs a new empty SnmpString.
-
SnmpString(Byte[])
- Constructs a new SnmpString with the specified bytes.
-
SnmpString(byte[])
- Constructs a new SnmpString with the specified bytes.
-
SnmpString(String)
- Constructs a new SnmpString with the specified JAVA string.
-
appendToOid(SnmpOid, SnmpOid)
- Append an SnmpOid representing an SnmpString to another Oid.
-
byteValue()
- Convert the string to its byte array.
-
clone()
- Creates a new object of the same class as this object.
-
duplicate()
- Same as clone, but you can not perform cloning using this object because
clone is protected.
-
getTypeName()
- Returns a textual description of the object.
-
nextOid(long[], int)
- Scan an index oid, skip the string value and returns the position
of the next value.
-
toByte()
- Convert the string to a Byte array.
-
toOid()
- Convert the string to its Oid form.
-
toOid(long[], int)
- Extract the string from an index oid and returns its
value converted as an Oid.
-
toString()
- Return the string representation.
SnmpString
public SnmpString()
- Constructs a new empty SnmpString.
SnmpString
public SnmpString(byte v[])
- Constructs a new SnmpString with the specified bytes.
- Parameters:
- v - The bytes composing the string.
SnmpString
public SnmpString(Byte v[])
- Constructs a new SnmpString with the specified bytes.
- Parameters:
- v - The bytes composing the string.
SnmpString
public SnmpString(String v)
- Constructs a new SnmpString with the specified JAVA string.
- Parameters:
- v - The a string.
toString
public String toString()
- Return the string representation.
- Returns:
- The string representation.
- Overrides:
- toString in class Object
byteValue
public byte[] byteValue()
- Convert the string to its byte array.
- Returns:
- The byte array
toByte
public Byte[] toByte()
- Convert the string to a Byte array.
toOid
public SnmpOid toOid()
- Convert the string to its Oid form.
- Returns:
- The Oid form
- Overrides:
- toOid in class SnmpValue
toOid
public static SnmpOid toOid(long index[],
int start) throws SnmpStatusException
- Extract the string from an index oid and returns its
value converted as an Oid.
- Returns:
- The SnmpOid representing the string value
- Throws: SnmpStatusException
- There is no string value
available at start position
nextOid
public static int nextOid(long index[],
int start) throws SnmpStatusException
- Scan an index oid, skip the string value and returns the position
of the next value.
- Returns:
- The position of the next value
- Throws: SnmpStatusException
- There is no string value
available at start position
appendToOid
public static void appendToOid(SnmpOid source,
SnmpOid dest)
- Append an SnmpOid representing an SnmpString to another Oid.
- Parameters:
- source - An Oid representing an SnmpString value.
- dest - Where source should be appened.
duplicate
public final synchronized SnmpValue duplicate()
- Same as clone, but you can not perform cloning using this object because
clone is protected.
- Overrides:
- duplicate in class SnmpValue
clone
public synchronized Object clone()
- Creates a new object of the same class as this object.
- Overrides:
- clone in class Object
getTypeName
public String getTypeName()
- Returns a textual description of the object.
- Returns:
- ASN.1 textual description.
- Overrides:
- getTypeName in class SnmpValue
All Packages Class Hierarchy This Package Previous Next Index