solar.impl
Class ByteArrayAdu

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

public class ByteArrayAdu
extends java.lang.Object
implements Adu

Application data unit contains only a byte array.

Version:
$Id: ByteArrayAdu.java,v 1.4 2003/09/23 14:03:57 glchen Exp $
Author:
Guanling Chen
See Also:
Serialized Form

Field Summary
protected  byte[] _msg
           
 
Constructor Summary
ByteArrayAdu(byte[] msg)
          Constructs a byte array 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 byte[] _msg
Constructor Detail

ByteArrayAdu

public ByteArrayAdu(byte[] msg)
Constructs a byte array 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