If I use `int oneByte = dis.read(byteArray, 0, 1)` does this mean I am reading only 1 byte and I am assigning its decimal value to integer oneByte?

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