solar.impl
Class StringAdu

java.lang.Object
  |
  +--solar.impl.StringAdu
All Implemented Interfaces:
Adu, java.io.Serializable

public class StringAdu
extends java.lang.Object
implements Adu

Application data unit contains only a string.

Version:
$Id: StringAdu.java,v 1.5 2003/09/23 14:03:58 glchen Exp $
Author:
Guanling Chen
See Also:
Serialized Form

Field Summary
protected  java.lang.String _msg
           
 
Constructor Summary
StringAdu(java.lang.String msg)
          Constructs a String ADU.
 
Method Summary
 byte[] toBytes()
          Return the byte array format of this ADU.
 java.lang.String toString()
          Return the string format of this ADU.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_msg

protected java.lang.String _msg
Constructor Detail

StringAdu

public StringAdu(java.lang.String msg)
Constructs a String ADU.

Method Detail

toString

public java.lang.String toString()
Description copied from interface: Adu
Return the string format of this ADU.

Specified by:
toString in interface Adu
Overrides:
toString in class java.lang.Object

toBytes

public byte[] toBytes()
Description copied from interface: Adu
Return the byte array format of this ADU.

Specified by:
toBytes in interface Adu