Package htsjdk.tribble.util
Interface URLHelper
-
- All Known Implementing Classes:
FTPHelper
,HTTPHelper
,RemoteURLHelper
public interface URLHelper
Interface defining a helper class for dealing with URL resources. Purpose of this class is to provide the flexibility to use either URLConnection or Apache HTTPClient. Also want to delegate to either HTTP or FTP- See Also:
HTTPHelper
,FTPHelper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
exists()
long
getContentLength()
URL
getUrl()
InputStream
openInputStream()
InputStream
openInputStreamForRange(long start, long end)
Deprecated.Will be removed in a future release, as is somewhat fragile and not used.
-
-
-
Method Detail
-
getUrl
URL getUrl()
-
getContentLength
long getContentLength() throws IOException
- Throws:
IOException
-
openInputStream
InputStream openInputStream() throws IOException
- Throws:
IOException
-
openInputStreamForRange
@Deprecated InputStream openInputStreamForRange(long start, long end) throws IOException
Deprecated.Will be removed in a future release, as is somewhat fragile and not used.May throw an OperationUnsupportedException- Parameters:
start
-end
-- Returns:
- Throws:
IOException
-
exists
boolean exists() throws IOException
- Throws:
IOException
-
-