IFileEntry
public
interface
IFileEntry
| com.android.tradefed.device.IFileEntry |
Définition d'interface qui fournit un contrat plus simple et simulable aux méthodes FileEntry.
À FAIRE : déplacer ceci dans ddmlib
Résumé
Méthodes publiques | |
|---|---|
abstract
IFileEntry
|
findChild(String name)
Recherche un |
abstract
|
getChildren(boolean useCache)
Renvoie les enfants d'un |
abstract
String
|
getDate()
Wrapper pour |
abstract
FileListingService.FileEntry
|
getFileEntry()
Renvoie une référence à |
abstract
String
|
getFullEscapedPath()
Wrapper pour |
abstract
String
|
getFullPath()
Wrapper pour |
abstract
String
|
getName()
Wrapper pour |
abstract
String
|
getPermissions()
Wrapper pour |
abstract
String
|
getTime()
Wrapper pour |
abstract
boolean
|
isAppFileName()
Wrapper pour |
abstract
boolean
|
isDirectory()
Wrapper pour |
Méthodes publiques
findChild
public abstract IFileEntry findChild (String name)
Recherche un IFileEntry enfant portant le nom indiqué.
Il s'agit essentiellement d'un wrapper pour FileEntry.findChild(String) qui recherche également d'abord les enfants mis en cache pour le fichier portant le nom donné, et s'il n'est pas trouvé, actualise la liste des fichiers enfants mis en cache et réessaie.
| Paramètres | |
|---|---|
name |
String |
| Renvoie | |
|---|---|
IFileEntry |
|
| Génère | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|
getChildren
public abstractgetChildren (boolean useCache)
Renvoie les enfants d'un IFileEntry.
Il s'agit essentiellement d'un wrapper synchrone pour FileListingService.getChildren(FileEntry, boolean, FileListingService.IListingReceiver).
| Paramètres | |
|---|---|
useCache |
boolean : true si les enfants mis en cache doivent être renvoyés s'ils sont disponibles.
false si une nouvelle commande ls doit être forcée. |
| Renvoie | |
|---|---|
|
liste des sous-fichiers |
| Génère | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
Renvoie une référence à FileEntry ddmlib.
| Renvoie | |
|---|---|
FileListingService.FileEntry |
|
getFullEscapedPath
public abstract String getFullEscapedPath ()
Wrapper pour FileEntry.getFullEscapedPath().
| Renvoie | |
|---|---|
String |
|
getFullPath
public abstract String getFullPath ()
Wrapper pour FileEntry.getFullPath().
| Renvoie | |
|---|---|
String |
|
getPermissions
public abstract String getPermissions ()
Wrapper pour FileEntry.getPermissions().
| Renvoie | |
|---|---|
String |
|
isAppFileName
public abstract boolean isAppFileName ()
Wrapper pour FileEntry.isAppFileName().
| Renvoie | |
|---|---|
boolean |
|
isDirectory
public abstract boolean isDirectory ()
Wrapper pour FileEntry.isDirectory().
| Renvoie | |
|---|---|
boolean |
|