文件入口
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 |