DocumentFile.java
2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package android.support.v4.provider;
import android.content.Context;
import android.net.Uri;
import android.os.Build.VERSION;
import android.provider.DocumentsContract;
import dx;
import dy;
import dz;
import java.io.File;
public abstract class DocumentFile
{
private final DocumentFile a;
protected DocumentFile(DocumentFile paramDocumentFile)
{
this.a = paramDocumentFile;
}
public static DocumentFile fromFile(File paramFile)
{
return new dx(null, paramFile);
}
public static DocumentFile fromSingleUri(Context paramContext, Uri paramUri)
{
if (Build.VERSION.SDK_INT >= 19) {
return new dy(paramContext, paramUri);
}
return null;
}
public static DocumentFile fromTreeUri(Context paramContext, Uri paramUri)
{
if (Build.VERSION.SDK_INT >= 21) {
return new dz(null, paramContext, DocumentsContract.buildDocumentUriUsingTree(paramUri, DocumentsContract.getTreeDocumentId(paramUri)));
}
return null;
}
public static boolean isDocumentUri(Context paramContext, Uri paramUri)
{
if (Build.VERSION.SDK_INT >= 19) {
return DocumentsContract.isDocumentUri(paramContext, paramUri);
}
return false;
}
public abstract boolean canRead();
public abstract boolean canWrite();
public abstract DocumentFile createDirectory(String paramString);
public abstract DocumentFile createFile(String paramString1, String paramString2);
public abstract boolean delete();
public abstract boolean exists();
public DocumentFile findFile(String paramString)
{
DocumentFile[] arrayOfDocumentFile = listFiles();
int j = arrayOfDocumentFile.length;
int i = 0;
while (i < j)
{
DocumentFile localDocumentFile = arrayOfDocumentFile[i];
if (paramString.equals(localDocumentFile.getName())) {
return localDocumentFile;
}
i += 1;
}
return null;
}
public abstract String getName();
public DocumentFile getParentFile()
{
return this.a;
}
public abstract String getType();
public abstract Uri getUri();
public abstract boolean isDirectory();
public abstract boolean isFile();
public abstract boolean isVirtual();
public abstract long lastModified();
public abstract long length();
public abstract DocumentFile[] listFiles();
public abstract boolean renameTo(String paramString);
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/provider/DocumentFile.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/