Package com.iizix.wsfile
Interface IWSFileDownload
- All Known Implementing Classes:
WSFileDownload
public interface IWSFileDownload
Interface used to hold information for file download into a file provider.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes of the download if in progress.Gets the description of the download file.Gets the exception from the download process or when writing the file.getFile()
Gets the download file.getID()
Gets the ID used for database identification.getURL()
Gets the URL.boolean
Checks if the download is disposed of (during progress).
Method Details
getURL
URL getURL()Gets the URL.- Returns:
- The URL.
getID
Object getID()Gets the ID used for database identification.- Returns:
- A Long or String,
null
when database is not used.
getDescription
String getDescription()Gets the description of the download file.- Returns:
- The description.
getFile
File getFile()Gets the download file.- Returns:
- The file, or null if an exception occurred.
getException
Throwable getException()Gets the exception from the download process or when writing the file.- Returns:
- The exception, or null if no error occurred.
dispose
void dispose()Disposes of the download if in progress.isDisposed
boolean isDisposed()Checks if the download is disposed of (during progress).- Returns:
- The dispose flag:
true
if download has been disposed of, i.e. canceled,false
otherwise.