de.jaetzold.art.platform.fischertechnik
Class Fischertechnik.FTPacketDataInputFilter

java.lang.Object
  |
  +--de.jaetzold.art.platform.PacketInputStream.DefaultPacketDataFilter
        |
        +--de.jaetzold.art.platform.fischertechnik.Fischertechnik.FTPacketDataInputFilter
All Implemented Interfaces:
PacketInputStream.PacketDataFilter
Enclosing class:
Fischertechnik

protected class Fischertechnik.FTPacketDataInputFilter
extends PacketInputStream.DefaultPacketDataFilter


Field Summary
protected  int packetLength
           
 
Constructor Summary
protected Fischertechnik.FTPacketDataInputFilter()
           
 
Method Summary
 byte[] filterBufferForPacketData(byte[] packet, int packetLen, byte[] readBuffer, int readBOff, int readBLen)
           
 int getPacketLength()
           
 boolean isDataComplete(byte[] packet, int packetLen, byte[] readBuffer, int readBOff, int readBLen)
           
 void setPacketLength(int packetLength)
          The programmer has to take care, that the packetLength gets set at the right time.
 
Methods inherited from class de.jaetzold.art.platform.PacketInputStream.DefaultPacketDataFilter
getDataSkipLen, getPacketLen, setDataSkipLen, setPacketLen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

packetLength

protected int packetLength
Constructor Detail

Fischertechnik.FTPacketDataInputFilter

protected Fischertechnik.FTPacketDataInputFilter()
Method Detail

setPacketLength

public void setPacketLength(int packetLength)
The programmer has to take care, that the packetLength gets set at the right time.

getPacketLength

public int getPacketLength()

filterBufferForPacketData

public byte[] filterBufferForPacketData(byte[] packet,
                                        int packetLen,
                                        byte[] readBuffer,
                                        int readBOff,
                                        int readBLen)
                                 throws CorruptPacketException
Overrides:
filterBufferForPacketData in class PacketInputStream.DefaultPacketDataFilter
Following copied from class: de.jaetzold.art.platform.PacketInputStream.DefaultPacketDataFilter
See Also:
ByteArray.manageBufferSize(byte[],int,int)

isDataComplete

public boolean isDataComplete(byte[] packet,
                              int packetLen,
                              byte[] readBuffer,
                              int readBOff,
                              int readBLen)
Overrides:
isDataComplete in class PacketInputStream.DefaultPacketDataFilter