IFileEntry
public
interface
IFileEntry
com.android.tradefed.device.IFileEntry |
FileEntry
メソッドにシンプルでモック可能なコントラクトを提供するインターフェース定義。
TODO: これを ddmlib に移動
概要
パブリック メソッド | |
---|---|
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 |
例外 | |
---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getChildren
public abstractgetChildren (boolean useCache)
IFileEntry
の子要素を返します。
基本的に FileListingService.getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
の同期ラッパー
パラメータ | |
---|---|
useCache |
boolean : キャッシュに保存されている子要素が利用可能な場合は返す必要がある場合は true 。false : 新しい ls コマンドを強制する場合。 |
戻り値 | |
---|---|
|
サブファイルのリスト |
例外 | |
---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
ddmlib FileEntry
への参照を返します。
戻り値 | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
FileEntry.getFullEscapedPath()
のラッパー。
戻り値 | |
---|---|
String |
getPermissions
public abstract String getPermissions ()
FileEntry.getPermissions()
のラッパー。
戻り値 | |
---|---|
String |