919293949596979899
private Buffer readPacketData(int packetLength) throws IOException { byte[] packets = new byte[packetLength]; is.readFully(packets); offset += packetLength; Buffer payload = new ChainBuffer(); payload.addLast(packets); return payload; }