Attempts to read enough bytes from the stream to fill the given byte array, with the same behavior as {@link DataInput#readFully(byte[])}. Does not close the stream. @param in the input stream to read from. @param b the buffer into which the data is read. @throws EOFException if this stream reaches
(InputStream in, byte[] b)
| 793 | * @throws IOException if an I/O error occurs. |
| 794 | */ |
| 795 | public static void readFully(InputStream in, byte[] b) throws IOException { |
| 796 | readFully(in, b, 0, b.length); |
| 797 | } |
| 798 | |
| 799 | /** |
| 800 | * Attempts to read {@code len} bytes from the stream into the given array starting at {@code |
no test coverage detected