com.tivoli.twg.dmi
Class DMI_OctetString

java.lang.Object
  extended bycom.tivoli.twg.dmi.DMI_OctetString

public class DMI_OctetString
extends java.lang.Object

This class implements the DMI defined data type OctetString. Most DMI Data types map into standard Java data types, with the exception of OctetString and MIF Date. The type is basically handled as a byte array.


Constructor Summary
DMI_OctetString(byte[] Data)
          Construct an instance of Octet String.
 
Method Summary
 byte[] GetData()
          Accessor method for retrieving the data for this octet string.
protected  int GetLen()
          Accessor method for retrieving the length of this octet string.
 void SetData(byte[] Data)
          Method to allow for the setting of the octet string to a new value.
 java.lang.String toString()
          Debug method for dumping the Octet string out as a printable string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DMI_OctetString

public DMI_OctetString(byte[] Data)
Construct an instance of Octet String.

Method Detail

toString

public java.lang.String toString()
Debug method for dumping the Octet string out as a printable string.

Returns:
String - Returns a displayable string.

GetLen

protected int GetLen()
Accessor method for retrieving the length of this octet string.

Returns:
int - the length in octets of this octet string.

GetData

public byte[] GetData()
Accessor method for retrieving the data for this octet string.

Returns:
byte[] - the data contained in this octet string as a byte[].

SetData

public void SetData(byte[] Data)
Method to allow for the setting of the octet string to a new value.