net.sf.dexterim.oscar.entity
Class TLV

java.lang.Object
  extended bynet.sf.dexterim.oscar.entity.TLV
All Implemented Interfaces:
ByteBased

public class TLV
extends java.lang.Object
implements ByteBased

xx xx word TLV type number xx xx word TLV length value ...... TLV data

Author:
christoph

Constructor Summary
TLV(int type)
           
TLV(Word type)
           
 
Method Summary
 ByteBased getData()
           
 int getLength()
          Returns the length in bytes.
 int getType()
           
 void setData(byte[] data)
           
 void setData(ByteBased data)
           
 byte[] toByteArray()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TLV

public TLV(Word type)

TLV

public TLV(int type)
Method Detail

toByteArray

public byte[] toByteArray()
Specified by:
toByteArray in interface ByteBased

getLength

public int getLength()
Description copied from interface: ByteBased
Returns the length in bytes.

Specified by:
getLength in interface ByteBased
Returns:
length in bytes
See Also:
ByteBased.getLength()

getType

public int getType()
Returns:

setData

public void setData(ByteBased data)

setData

public void setData(byte[] data)

getData

public ByteBased getData()
Returns:

toString

public java.lang.String toString()


Copyright © 2003-2004 Dexter IM Team. All Rights Reserved.