BEAST
eu.baltrad.beast.net.FileUploadHandler Interface Reference
Inheritance diagram for eu.baltrad.beast.net.FileUploadHandler:
eu.baltrad.beast.net.FileUploadHandlerBase eu.baltrad.beast.net.CopyFileUploadHandler eu.baltrad.beast.net.ftp.FTPFileUploadHandler eu.baltrad.beast.net.scp.SCPFileUploadHandler eu.baltrad.beast.net.scp.SCPOnlyFileUploadHandler eu.baltrad.beast.net.sftp.SFTPFileUploadHandler

Public Member Functions

void upload (File src, URI dst) throws IOException
 Upload a file.
 
URI appendPath (URI uri, String path)
 Append a path to an URI.
 

Member Function Documentation

◆ appendPath()

URI eu.baltrad.beast.net.FileUploadHandler.appendPath ( URI uri,
String path )

Append a path to an URI.

Parameters
urithe uri to append to
paththe path to append
Returns
a new URI with the path appended.

Implemented in eu.baltrad.beast.net.FileUploadHandlerBase.

◆ upload()

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

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

Implemented in eu.baltrad.beast.net.CopyFileUploadHandler, eu.baltrad.beast.net.ftp.FTPFileUploadHandler, and eu.baltrad.beast.net.scp.SCPFileUploadHandler.


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