BEAST
eu.baltrad.beast.net.ftp.FTPFileUploadHandler Class Reference
Inheritance diagram for eu.baltrad.beast.net.ftp.FTPFileUploadHandler:
eu.baltrad.beast.net.FileUploadHandlerBase eu.baltrad.beast.net.FileUploadHandler

Public Member Functions

 FTPFileUploadHandler (FTPClient client)
 
void upload (File src, URI dst) throws IOException
 Upload a file.
 
void setClient (FTPClient client)
 
- Public Member Functions inherited from eu.baltrad.beast.net.FileUploadHandlerBase
URI appendPath (URI uri, String path)
 append a path to an URI.
 

Protected Member Functions

void connect (URI uri) throws IOException
 
void store (File src, URI dst) throws IOException
 
boolean isDirectory (File path) throws IOException
 
InputStream openStream (File f) throws IOException
 
String getHost (URI uri)
 
int getPort (URI uri)
 
String getUser (URI uri)
 
String getPassword (URI uri)
 
File getPath (URI uri)
 

Static Protected Attributes

static final int DEFAULT_CONNECT_TIMEOUT = 10000
 
static final int DEFAULT_SOCKET_TIMEOUT = 60000
 

Member Function Documentation

◆ upload()

void eu.baltrad.beast.net.ftp.FTPFileUploadHandler.upload ( File src,
URI dst ) throws IOException
inline

Upload a file.

The implementations should determine if the dst refers to a file or a directory and in case of the former rename the file.

Parameters
srcthe file to copy
dstthe destination URI.
Exceptions
IOExceptionwhen copying fails

Implements eu.baltrad.beast.net.FileUploadHandler.


The documentation for this class was generated from the following file: