core/src/main/java/com/squareup/rack/RackInput.java
/**
   * Reads length bytes from the stream. Reads all the way to EOF when length is null.
   *
   * @param length the desired number of bytes, or null.
   * @return the bytes, or null at EOF when length is present.
   * @throws IOException
   */
Reads length bytes from the stream. Reads all the way to EOF when length is null.
@param length the desired number of bytes, or null.
@return the bytes, or null at EOF when length is present.
Reads length bytes from the stream . Reads all the way to EOF when length is null . @param length the desired number of bytes or null . @return the bytes or null at EOF when length is present .
public byte[] read(Integer length) throws IOException {
    if (length == null) {
      return readToEof();
    } else {
      return readTo(length);
    }
  }
public byte [ ] read ( Integer length ) throws IOException { if ( length == null ) { return readToEof ( ) ; } else { return readTo ( length ) ; } }
Reads length bytes from the stream.
Reads length bytes from the stream .