Package htsjdk.samtools.util.ftp
Class FTPClient
java.lang.Object
htsjdk.samtools.util.ftp.FTPClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbinary()
void
Connects to the given FTP host on the default port.void
Disconnects from the host to which we are currently connected.executeCommand
(String command) Executes the given FTP command on our current connection, returning the three digit response code from the server.getReply()
Wrapper for the commandsuser [username]
andpass [password]
.pasv()
quit()
void
setRestPosition
(long position) Return the size of the remote file
-
Field Details
-
READ_TIMEOUT
public static final int READ_TIMEOUT- See Also:
-
-
Constructor Details
-
FTPClient
public FTPClient()
-
-
Method Details
-
connect
Connects to the given FTP host on the default port.- Throws:
IOException
-
executeCommand
Executes the given FTP command on our current connection, returning the three digit response code from the server. This method only works for commands that do not require an additional data port.- Throws:
IOException
-
login
Wrapper for the commandsuser [username]
andpass [password]
.- Throws:
IOException
-
quit
- Throws:
IOException
-
binary
- Throws:
IOException
-
pasv
- Throws:
IOException
-
setRestPosition
public void setRestPosition(long position) -
retr
- Throws:
IOException
-
getReply
- Throws:
IOException
-
size
Return the size of the remote file- Parameters:
file
-- Returns:
- Throws:
IOException
-
getDataStream
- Throws:
IOException
-
closeDataStream
- Throws:
IOException
-
disconnect
public void disconnect()Disconnects from the host to which we are currently connected.
-