文件入口
public interface IFileEntry
com.android.tradefed.device.IFileEntry |
为FileEntry
方法提供更简单、可模拟的契约的接口定义。
概括
公共方法 | |
---|---|
abstract IFileEntry | findChild (String name) 查找具有给定名称的子 |
abstract | getChildren (boolean useCache) 返回 |
abstract String | getDate () |
abstract FileListingService.FileEntry | getFileEntry () 返回对 ddmlib |
abstract String | getFullEscapedPath () |
abstract String | getFullPath () |
abstract String | getName () |
abstract String | getPermissions () |
abstract String | getTime () |
abstract boolean | isAppFileName () |
abstract boolean | isDirectory () |
公共方法
寻找孩子
public abstract IFileEntry findChild (String name)
查找具有给定名称的子IFileEntry
。
FileEntry#findChild(String)
的包装器,它还将首先在缓存的子文件中搜索具有给定名称的文件,如果找不到,则刷新缓存的子文件列表并再次尝试。参数 | |
---|---|
name | String |
退货 | |
---|---|
IFileEntry |
投掷 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
获取孩子
public abstractgetChildren (boolean useCache)
返回IFileEntry
的子项。
FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
的同步包装器参数 | |
---|---|
useCache | boolean :如果缓存的子项可用则应返回,则为true 。如果应强制执行新的 ls 命令,则为false 。 |
退货 | |
---|---|
子文件列表 |
投掷 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
获取文件条目
public abstract FileListingService.FileEntry getFileEntry ()
返回对 ddmlib FileEntry
的引用。
退货 | |
---|---|
FileListingService.FileEntry |