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 booleanexists()longgetContentLength()URLgetUrl()InputStreamopenInputStream()InputStreamopenInputStreamForRange(long start, long end)Deprecated.since 12/10/14 Will be removed in a future release, as is somewhat fragile and not used.static voidsetProxy(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:
getContentLengthin interfaceURLHelper- Returns:
- content length of the resource
- Throws:
IOException
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStreamin 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:
openInputStreamForRangein interfaceURLHelper- Parameters:
start- start of range in bytesend- end of range ni bytes- Returns:
- Throws:
IOException
-
exists
public boolean exists() throws IOException- Specified by:
existsin interfaceURLHelper- Throws:
IOException
-
-