public MessageRunnable(int msz, int mtp, DataInputStream di) throws IOException, SocketException { msgsize = msz; msgtype = mtp; msgbytes = new byte[msgsize - 2]; di.readFully(msgbytes); // di.read(msgbytes); din = new DataInputStream(new ByteArrayInputStream(msgbytes)); }