| | |
| | | if (0 < index && isMatch) {
|
| | | List<Byte> tempList = new ArrayList<Byte>();
|
| | | for (int i = index; i < list.size(); i++) {
|
| | | tempList.add(list.get(index));
|
| | | tempList.add(list.get(i));
|
| | | }
|
| | |
|
| | | list.clear();
|
| | |
| | |
|
| | | IHandleMessage handleMessage = getOptions().getHandleMessage();
|
| | | if (handleMessage != null) {
|
| | | handleMessage.read(receivePacket.getData());
|
| | | byte[] data = new byte[receivePacket.getLength()];
|
| | | System.arraycopy(receivePacket.getData(), 0, data, 0, data.length);
|
| | | handleMessage.read(data);
|
| | | }
|
| | | final String receive = new String(receivePacket.getData(), 0, receivePacket.getLength());
|
| | |
|