I have a problem with an InputStream from a TCP Socket in Java when parsing the buffer:
InputStream stream = (InputStream)socket.getInputStream(); int numByte