ist.palcom.base.networking
Class BluetoothPacket

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

public class BluetoothPacket
extends java.lang.Object

This class implements core.BluetoothPacket


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

Constructor Detail

BluetoothPacket

public BluetoothPacket(byte[] data,
                       java.lang.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 java.lang.String getReceiverHost()

setReceiverHost

public void setReceiverHost(java.lang.String address)

toByteRepresentation

public byte[] toByteRepresentation()

fromByteRepresentation

public void fromByteRepresentation(byte[] byteArray)

getLength

public int getLength()

setLength

public void setLength(int length)

getSenderHost

public java.lang.String getSenderHost()

setSenderHost

public void setSenderHost(java.lang.String senderHost)