Package htsjdk.tribble.util
Class FTPHelper
- java.lang.Object
-
- htsjdk.tribble.util.FTPHelper
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()longgetContentLength()URLgetUrl()InputStreamopenInputStream()Open an InputStream to stream the contents of the resourceInputStreamopenInputStreamForRange(long start, long end)Open an InputStream to stream a slice (range) of the resource.
-
-
-
Constructor Detail
-
FTPHelper
public FTPHelper(URL url)
-
-
Method Detail
-
getUrl
public URL getUrl()
-
getContentLength
public long getContentLength() throws IOException- Specified by:
getContentLengthin interfaceURLHelper- Returns:
- content length of the resource, or -1 if not available
- Throws:
IOException
-
openInputStream
public InputStream openInputStream() throws IOException
Description copied from interface:URLHelperOpen an InputStream to stream the contents of the resource- Specified by:
openInputStreamin interfaceURLHelper- Returns:
- Throws:
IOException
-
openInputStreamForRange
public InputStream openInputStreamForRange(long start, long end) throws IOException
Description copied from interface:URLHelperOpen an InputStream to stream a slice (range) of the resource. May throw an OperationUnsupportedException- Specified by:
openInputStreamForRangein interfaceURLHelper- Returns:
- Throws:
IOException
-
exists
public boolean exists() throws IOException- Specified by:
existsin interfaceURLHelper- Throws:
IOException
-
-