public static void readFully(final InputStream inputStream, final byte[] buffer)
    throws IOException {
        readFully(inputStream, buffer, buffer.length);
    }
public static void readFully(final InputStream inputStream, final byte[] buffer)
    throws IOException {
        readFully(inputStream, buffer, buffer.length);
    }
public static void readFully ( final InputStream inputStream , final byte [ ] buffer ) throws IOException { readFully ( inputStream , buffer , buffer . length ) ; }
Reads bytes from the input stream and puts them into the given byte buffer. The equivalent of calling
{@link #readFully(java.io.InputStream, byte[], int, int)} with an offset of zero and a length equal to the length of the buffer.

@param inputStream the input stream to read from
@param buffer      the buffer into which the data is read.
@throws IOException if there's an error reading from the {@code inputStream}
Reads bytes from the input stream and puts them into the given byte buffer . The equivalent of calling { @link #readFully ( java . io . InputStream byte [] int int ) } with an offset of zero and a length equal to the length of the buffer .