public class FTPUtils
extends java.lang.Object
Constructor and Description |
---|
FTPUtils(java.lang.String urlString)
Parses the URL, connects to the FTP server and then executes the login.
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Disconnects from the FTP server.
|
int |
getSize()
Sends FTP command for the size of the file and reads and parses
the response from the the FTP server.
|
public FTPUtils(java.lang.String urlString) throws java.lang.Exception
urlString
- the URL of the file.java.lang.Exception
- if something with parsing the URL or connection or
login fails.public int getSize() throws java.lang.Exception
java.lang.Exception
- if readLine fails.public void disconnect() throws java.io.IOException
java.io.IOException
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.