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 () |
公開メソッド
子を見つける
public abstract IFileEntry findChild (String name)
指定された名前の子IFileEntry
を検索します。
FileEntry#findChild(String)
のラッパーで、最初にキャッシュされた子ファイルから指定された名前のファイルを検索し、見つからない場合はキャッシュされた子ファイル リストを更新して再試行します。パラメーター | |
---|---|
name | String |
戻り値 | |
---|---|
IFileEntry |
スロー | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getChildren
public abstractgetChildren (boolean useCache)
IFileEntry
の子を返します。
FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
の同期ラッパーパラメーター | |
---|---|
useCache | boolean : 可能な場合にキャッシュされた子を返す必要がある場合はtrue 。新しい ls コマンドを強制する必要がある場合はfalse 。 |
戻り値 | |
---|---|
サブファイルのリスト |
スロー | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
ddmlib FileEntry
への参照を返します。
戻り値 | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
FileEntry#getFullEscapedPath()
のラッパー。
戻り値 | |
---|---|
String |