ist.palcom.base
Class BluetoothPacket

java.lang.Object
  extended by ist.palcom.base.BluetoothPacket

public class BluetoothPacket
extends Object

This class implements core.BluetoothPacket


Constructor Summary
BluetoothPacket()
           
BluetoothPacket(byte[] data, String host)
           
 
Method Summary
 void fromByteRepresentation(byte[] byteArray)
           
 byte[] getData()
           
 int getDataLength()
           
 int getLength()
           
 String getReceiverHost()
           
 String getSenderHost()
           
 void setLength(int length)
           
 void setReceiverHost(String address)
           
 void setSenderHost(String senderHost)
           
 byte[] toByteRepresentation()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, println, toString
 

Constructor Detail

BluetoothPacket

public BluetoothPacket(byte[] data,
                       String host)
Parameters:
data - - the data in the package
host - - address of the receiving host

BluetoothPacket

public BluetoothPacket()
Method Detail

getData

public byte[] getData()

getDataLength

public int getDataLength()

getReceiverHost

public String getReceiverHost()

setReceiverHost

public void setReceiverHost(String address)

toByteRepresentation

public byte[] toByteRepresentation()

fromByteRepresentation

public void fromByteRepresentation(byte[] byteArray)

getLength

public int getLength()

setLength

public void setLength(int length)

getSenderHost

public String getSenderHost()

setSenderHost

public void setSenderHost(String senderHost)