Methods Summary |
---|
public boolean | canRead()
return DocumentsContractApi19.canRead(mContext, mUri);
|
public boolean | canWrite()
return DocumentsContractApi19.canWrite(mContext, mUri);
|
public DocumentFile | createDirectory(java.lang.String displayName)
final Uri result = DocumentsContractApi21.createDirectory(mContext, mUri, displayName);
return (result != null) ? new TreeDocumentFile(this, mContext, result) : null;
|
public DocumentFile | createFile(java.lang.String mimeType, java.lang.String displayName)
final Uri result = DocumentsContractApi21.createFile(mContext, mUri, mimeType, displayName);
return (result != null) ? new TreeDocumentFile(this, mContext, result) : null;
|
public boolean | delete()
return DocumentsContractApi19.delete(mContext, mUri);
|
public boolean | exists()
return DocumentsContractApi19.exists(mContext, mUri);
|
public java.lang.String | getName()
return DocumentsContractApi19.getName(mContext, mUri);
|
public java.lang.String | getType()
return DocumentsContractApi19.getType(mContext, mUri);
|
public android.net.Uri | getUri()
return mUri;
|
public boolean | isDirectory()
return DocumentsContractApi19.isDirectory(mContext, mUri);
|
public boolean | isFile()
return DocumentsContractApi19.isFile(mContext, mUri);
|
public long | lastModified()
return DocumentsContractApi19.lastModified(mContext, mUri);
|
public long | length()
return DocumentsContractApi19.length(mContext, mUri);
|
public DocumentFile[] | listFiles()
final Uri[] result = DocumentsContractApi21.listFiles(mContext, mUri);
final DocumentFile[] resultFiles = new DocumentFile[result.length];
for (int i = 0; i < result.length; i++) {
resultFiles[i] = new TreeDocumentFile(this, mContext, result[i]);
}
return resultFiles;
|
public boolean | renameTo(java.lang.String displayName)
final Uri result = DocumentsContractApi21.renameTo(mContext, mUri, displayName);
if (result != null) {
mUri = result;
return true;
} else {
return false;
}
|