IFileEntry
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 () |
公开方法
findChild
public abstract IFileEntry findChild (String name)
查找具有给定名称的子IFileEntry
。
FileEntry#findChild(String)
的包装器,该包装器还将首先在缓存的子级中搜索具有给定名称的文件,如果找不到,则刷新缓存的子级文件列表,然后再次尝试。参量 | |
---|---|
name | String |
退货 | |
---|---|
IFileEntry |
投掷 | |
---|---|
DeviceNotAvailableException |
getChildren
public abstractgetChildren (boolean useCache)
返回IFileEntry
的子IFileEntry
。
FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
的同步包装器参量 | |
---|---|
useCache | boolean :如果应该返回所缓存的子级(如果有),则为true 。如果应强制执行新的ls命令,则返回false 。 |
退货 | |
---|---|
子文件列表 |
投掷 | |
---|---|
DeviceNotAvailableException |
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
返回对ddmlib FileEntry
引用。
退货 | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
FileEntry#getFullEscapedPath()
包装。
退货 | |
---|---|
String |