/** * Open an input stream for the requested byte range. Its the client's responsibility to close the stream. * * @param start start of range in bytes * @param end end of range ni bytes * @return * @throws IOException * * @deprecated since 12/10/14 Will be removed in a future release, as is somewhat fragile * and not used. */ @Override @Deprecated public InputStream openInputStreamForRange(long start, long end) throws IOException { HttpURLConnection connection = openConnection(); String byteRange = "bytes=" + start + "-" + end; connection.setRequestProperty("Range", byteRange); return new WrapperInputStream(connection, connection.getInputStream()); }
/** * Open an input stream for the requested byte range. Its the client's responsibility to close the stream. * * @param start start of range in bytes * @param end end of range ni bytes * @return * @throws IOException * * @deprecated since 12/10/14 Will be removed in a future release, as is somewhat fragile * and not used. */ @Override @Deprecated public InputStream openInputStreamForRange(long start, long end) throws IOException { HttpURLConnection connection = openConnection(); String byteRange = "bytes=" + start + "-" + end; connection.setRequestProperty("Range", byteRange); return new WrapperInputStream(connection, connection.getInputStream()); }
/** * Open an input stream for the requested byte range. Its the client's responsibility to close the stream. * * @param start start of range in bytes * @param end end of range ni bytes * @return * @throws IOException */ public InputStream openInputStreamForRange(long start, long end) throws IOException { HttpURLConnection connection = openConnection(); String byteRange = "bytes=" + start + "-" + end; connection.setRequestProperty("Range", byteRange); return new WrapperInputStream(connection, connection.getInputStream()); }
public InputStream openInputStream() throws IOException { HttpURLConnection connection = openConnection(); return new WrapperInputStream(connection, connection.getInputStream()); }
@Override public InputStream openInputStream() throws IOException { HttpURLConnection connection = openConnection(); return new WrapperInputStream(connection, connection.getInputStream()); }
@Override public InputStream openInputStream() throws IOException { HttpURLConnection connection = openConnection(); return new WrapperInputStream(connection, connection.getInputStream()); }