Class FileWriteTask
java.lang.Object
com.pranavpandey.android.dynamic.util.concurrent.DynamicRunnable<T,P,R>
com.pranavpandey.android.dynamic.util.concurrent.DynamicTask<T,P,R>
com.pranavpandey.android.dynamic.util.concurrent.task.ContextTask<Void,Void,Boolean>
com.pranavpandey.android.dynamic.util.concurrent.task.FileWriteTask
- All Implemented Interfaces:
Runnable
A
DynamicTask
to write a file Uri
from source to the destination.-
Constructor Summary
ConstructorDescriptionFileWriteTask
(Context context, Uri source, Uri destination) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
doInBackground
(Void params) This method will be called for doing the background work.Get the destination URI used by this task.Get the source URI used by this task.Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.task.ContextTask
getContext
Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicTask
cancel, execute, execute, executeOnExecutor, executeOnExecutor, finish, get, get, getBooleanResult, getHandler, getStatus, isCancelled, publishProgress, run
Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicRunnable
onCancelled, onCancelled, onPostExecute, onPreExecute, onProgressUpdate
-
Constructor Details
-
FileWriteTask
Constructor to initialize an object of this class.- Parameters:
context
- The context to get the content resolver.source
- The URI of the source file.destination
- The URI of the destination file.- See Also:
-
-
Method Details
-
doInBackground
Description copied from class:DynamicRunnable
This method will be called for doing the background work.- Specified by:
doInBackground
in classDynamicRunnable<Void,
Void, Boolean> - Parameters:
params
- The optional parameters required for the work.- Returns:
- The optional result object.
-
getSource
Get the source URI used by this task.- Returns:
- The source URI used by this task.
-
getDestination
Get the destination URI used by this task.- Returns:
- The destination URI used by this task.
-