Did you look at the PipedInputStream and PipedOutputStream classes?
Type: Posts; User: Norm
Did you look at the PipedInputStream and PipedOutputStream classes?
Read the API doc for the getNumericValue method to see when it returns a -1.
A better way to see what is in the read variable: Integer.toHexString(read)
or String.valueOf(read)