*
*/
public void _handleIncomingByte(byte[] data) {
try {
DePacketizerUtil depacketizerUtil = new DePacketizerUtil();
if (data.length>1024) {
log.debug("Bigger Package "+data.length+" Number "+(data.length/1024));
int frameNumber = Double.valueOf(Math.floor((data.length/1024))).intValue();
for (int i=0;i<frameNumber;i++) {
byte[] newPacket = this.extractByte(data, i, 1024);
ServerFrameBean serverFrameBean = depacketizerUtil.handleReceivingBytes(newPacket);
log.debug("MODE :: i: "+i+" MODE"+serverFrameBean.getMode());
}
} else {
ServerFrameBean serverFrameBean = depacketizerUtil.handleReceivingBytes(data);
log.debug("MODE :: "+serverFrameBean.getMode());
}