Package htsjdk.samtools.util.ftp
Class FTPStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- htsjdk.samtools.util.ftp.FTPStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class FTPStream extends FilterInputStream
A "non-seekable" ftp stream. This one doesn't support random access. It is assumed that the ftp client has been connected, put in passive mode, set to binary, and otherwise prepped for reading before creating this stream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read(byte[] bytes, int i, int i1)
-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
FTPStream
public FTPStream(FTPClient ftp) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public int read(byte[] bytes, int i, int i1) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
-