net.sf.dexterim.oscar.entity
Class Word

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

public class Word
extends ByteBase

Byte array with two entries

Author:
christoph

Constructor Summary
Word(byte[] data)
           
Word(byte lowByte, byte highByte)
           
Word(int value)
           
 
Method Summary
static Word createFrom(byte[] data)
           
static Word getDefault()
           
 int getLength()
          Returns the length in bytes.
 java.lang.String toString()
           
 
Methods inherited from class net.sf.dexterim.oscar.entity.ByteBase
getValue, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Word

public Word(int value)

Word

public Word(byte lowByte,
            byte highByte)

Word

public Word(byte[] data)
Parameters:
data -
Method Detail

createFrom

public static Word createFrom(byte[] data)

getLength

public int getLength()
Returns the length in bytes. For Word always length of 2 is returned.

Returns:
length in bytes always four for DWord
See Also:
ByteBased.getLength()

toString

public java.lang.String toString()

getDefault

public static Word getDefault()


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