文件條目
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 |