Java - InputStream .read() function
<p>If I use <code>int oneByte = dis.read(byteArray, 0, 1)</code> does this mean I am reading only 1 byte and I am assigning its decimal value to integer oneByte?</p>

<p>If I want to check for | (pipe) character to break out of a loop can I do something like this:
<code>while((oneByte = dis.read(byteArray, 0, 1)) != 124)</code></p>
