public class Dumper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Dumper.Listener |
Constructor and Description |
---|
Dumper(android.net.Uri uri,
java.lang.String filepath,
Dumper.Listener listener)
Create a Dumper that will download an Uri into a local filesystem path
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the dump of the Uri.
|
void |
start()
Start to dump
|
public Dumper(android.net.Uri uri, java.lang.String filepath, Dumper.Listener listener)
uri
- the Uri to dumpfilepath
- local filesystem path where to dump the Urilistener
- listener in order to be notified when the dump is finishedpublic void start()
public void cancel()
Dumper.Listener.onFinish(boolean)
callback.