MCPcopy
hub / github.com/google/guava / readFully

Method readFully

android/guava/src/com/google/common/io/ByteStreams.java:795–797  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

readFullyMethod · 0.95
testReadFullyMethod · 0.95

Calls 1

readMethod · 0.95

Tested by

no test coverage detected