-
public interface FileTransfer
-
-
Method Summary
Modifier and Type Method Description abstract Booleanhandles(String fileUrl)Checks if supports particular URL abstract UnitdownloadFrom(String dirUrl, String fileName, File target)Downloads file with given name from directory available at specified URL. Unitdownload(String fileUrl, File target)Downloads file from specified URL. abstract Filedownload(String fileUrl)Downloads file from specified URL to temporary directory with preserving file name. FiledownloadTo(String fileUrl, File dir)Downloads file from specified URL to specified directory with preserving file name. abstract UnituploadTo(String dirUrl, String fileName, File source)Uploads file to directory available at specified URL and set given name. UnituploadTo(String dirUrl, File source)Uploads file to directory available at specified URL. Unitupload(String fileUrl, File source)Uploads file to specified URL. abstract UnitdeleteFrom(String dirUrl, String fileName)Deletes file of given name in directory available at specified URL. Unitdelete(String fileUrl)Deletes file available at specified URL. abstract List<FileEntry>list(String dirUrl)Lists files in directory available at specified URL. abstract Unittruncate(String dirUrl)Deletes all files in directory available at specified URL. Booleanexists(String fileUrl)Checks if file at specified URL exists. Booleanexists(String dirUrl, String fileName)Checks if file with given name exists in directory at specified URL. abstract FileEntrystat(String dirUrl, String fileName)Gets file status of given name in directory at specified URL. FileEntrystat(String fileUrl)Gets file status at specified URL. -
-
Method Detail
-
downloadFrom
abstract Unit downloadFrom(String dirUrl, String fileName, File target)
Downloads file with given name from directory available at specified URL.
-
download
abstract File download(String fileUrl)
Downloads file from specified URL to temporary directory with preserving file name.
-
downloadTo
File downloadTo(String fileUrl, File dir)
Downloads file from specified URL to specified directory with preserving file name.
-
uploadTo
abstract Unit uploadTo(String dirUrl, String fileName, File source)
Uploads file to directory available at specified URL and set given name.
-
uploadTo
Unit uploadTo(String dirUrl, File source)
Uploads file to directory available at specified URL.
-
deleteFrom
abstract Unit deleteFrom(String dirUrl, String fileName)
Deletes file of given name in directory available at specified URL.
-
list
abstract List<FileEntry> list(String dirUrl)
Lists files in directory available at specified URL.
-
truncate
abstract Unit truncate(String dirUrl)
Deletes all files in directory available at specified URL.
-
exists
Boolean exists(String dirUrl, String fileName)
Checks if file with given name exists in directory at specified URL.
-
stat
abstract FileEntry stat(String dirUrl, String fileName)
Gets file status of given name in directory at specified URL.
-
-
-
-