All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.common.SnmpStringFixed

java.lang.Object
   |
   +----com.sun.jaw.snmp.common.SnmpValue
           |
           +----com.sun.jaw.snmp.common.SnmpString
                   |
                   +----com.sun.jaw.snmp.common.SnmpStringFixed

public class SnmpStringFixed
extends SnmpString
The SnmpStringFixed class is used for representing SNMP String values defined with a fixed length. The class is mainly used when dealing with table indexes for which one of the key is defined as a String.


Constructor Index

 o SnmpStringFixed(int, Byte[])
Constructs a new SnmpStringFixed from the specified string with the specified length.

Method Index

 o appendToOid(int, SnmpOid, SnmpOid)
Append an SnmpOid representing an SnmpStringFixed to another Oid.
 o nextOid(int, long[], int)
Scan an index oid, skip the string value and returns the position of the next value.
 o toOid(int, long[], int)
Extract the fixed-string from an index oid and returns its value converted as an Oid.

Constructors

 o SnmpStringFixed
 public SnmpStringFixed(int l,
                        Byte v[])
Constructs a new SnmpStringFixed from the specified string with the specified length.

Parameters:
l - The length of the fixed-string
v - The bytes composing the fixed-string.

Methods

 o toOid
 public static SnmpOid toOid(int l,
                             long index[],
                             int start) throws SnmpStatusException
Extract the fixed-string from an index oid and returns its value converted as an Oid.

Returns:
The SnmpOid representing the fixed-string value
Throws: SnmpStatusException
There is no string value available at start position
 o nextOid
 public static int nextOid(int l,
                           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
 o appendToOid
 public static void appendToOid(int l,
                                SnmpOid source,
                                SnmpOid dest)
Append an SnmpOid representing an SnmpStringFixed to another Oid.

Parameters:
source - An Oid representing an SnmpStringFixed value.
dest - Where source should be appened.

All Packages  Class Hierarchy  This Package  Previous  Next  Index