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

Public Member Functions

void upload (File src, URI dst) throws IOException
 Upload a file.
 
- 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

File getPath (URI uri)
 
boolean isDirectory (File path)
 
void copyFileToDirectory (File src, File dst) throws IOException
 
void copyFile (File src, File dst) throws IOException
 

Member Function Documentation

◆ upload()

void eu.baltrad.beast.net.CopyFileUploadHandler.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: