[java] Reading a binary input stream into a single byte array in Java