/** * Returns a new {@link InputStream} allowing to read the downloaded content. * @return the associated InputStream * @throws IOException in case of IO problems */ public InputStream getInputStream() throws IOException { return getStream(downloadedContent_, getResponseHeaders()); }
/** * Returns a new {@link InputStream} allowing to read the downloaded content. * @return the associated InputStream * @throws IOException in case of IO problems */ public InputStream getInputStream() throws IOException { return getStream(downloadedContent_, getResponseHeaders()); }
/** * Returns a new {@link InputStream} allowing to read the downloaded content. * @return the associated InputStream */ public InputStream getInputStream() { try { return getStream(downloadedContent_.getInputStream(), getResponseHeaders()); } catch (final IOException e) { throw new RuntimeException(e); // in fact getInputStream should probably have throw declaration } }