Package htsjdk.tribble.util
Class HTTPHelper
- java.lang.Object
-
- htsjdk.tribble.util.HTTPHelper
-
-
Constructor Summary
Constructors Constructor Description HTTPHelper(URL url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
exists()
long
getContentLength()
URL
getUrl()
InputStream
openInputStream()
InputStream
openInputStreamForRange(long start, long end)
Deprecated.since 12/10/14 Will be removed in a future release, as is somewhat fragile and not used.static void
setProxy(Proxy p)
-
-
-
Constructor Detail
-
HTTPHelper
public HTTPHelper(URL url)
-
-
Method Detail
-
setProxy
public static void setProxy(Proxy p)
-
getContentLength
public long getContentLength() throws IOException
- Specified by:
getContentLength
in interfaceURLHelper
- Returns:
- content length of the resource
- Throws:
IOException
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStream
in interfaceURLHelper
- Throws:
IOException
-
openInputStreamForRange
@Deprecated public InputStream openInputStreamForRange(long start, long end) throws IOException
Deprecated.since 12/10/14 Will be removed in a future release, as is somewhat fragile and not used.Open an input stream for the requested byte range. Its the client's responsibility to close the stream.- Specified by:
openInputStreamForRange
in interfaceURLHelper
- Parameters:
start
- start of range in bytesend
- end of range ni bytes- Returns:
- Throws:
IOException
-
exists
public boolean exists() throws IOException
- Specified by:
exists
in interfaceURLHelper
- Throws:
IOException
-
-