code: public InputStream getObject(String bucketName, String objectName)
      throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException,
             InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,
             InternalException,
             InvalidArgumentException {
      return getObject(bucketName, objectName, 0, null);
    }
docs: Gets entire object's data as {@link InputStream} in given bucket. The InputStream must be closed
  after use else the connection will remain open.
  
  <p><b>Example:</b>
  <pre>{@code InputStream stream = minioClient.getObject("my-bucketname", "my-objectname");
  byte[] buf = new byte[16384];
  int bytesRead;
  while ((bytesRead = stream.read(buf, 0, buf.length)) >= 0) {
  System.out.println(new String(buf, 0, bytesRead));
  }
  stream.close(); }</pre>
  
  @param bucketName Bucket name.
  @param objectName Object name in the bucket.
  
  @return {@link InputStream} containing the object data.
  
  @throws InvalidBucketNameException  upon invalid bucket name is given
  @throws NoSuchAlgorithmException
  upon requested algorithm was not found during signature calculation
  @throws InsufficientDataException  upon getting EOFException while reading given
  InputStream even before reading given length
  @throws IOException                 upon connection error
  @throws InvalidKeyException
  upon an invalid access key or secret key
  @throws NoResponseException         upon no response from server
  @throws XmlPullParserException      upon parsing response xml
  @throws ErrorResponseException      upon unsuccessful execution
  @throws InternalException           upon internal library error
  @throws InvalidArgumentException    upon invalid value is passed to a method.