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
.
Résumé
Méthodes publiques | |
---|---|
abstract IFileEntry | findChild (String name) Recherche un enfant |
abstract | getChildren (boolean useCache) Renvoie les enfants d'un |
abstract String | getDate () Wrapper pour |
abstract FileListingService.FileEntry | getFileEntry () Renvoie la référence à ddmlib |
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
trouverEnfant
public abstract IFileEntry findChild (String name)
Recherche un enfant IFileEntry
avec le nom donné.
FileEntry#findChild(String)
qui recherchera également d'abord les enfants en cache pour le fichier avec le nom donné, et s'il n'est pas trouvé, actualise la liste des fichiers enfants en cache et réessaye.Paramètres | |
---|---|
name | String |
Retour | |
---|---|
IFileEntry |
Lance | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getChildren
public abstractgetChildren (boolean useCache)
Renvoie les enfants d'un IFileEntry
.
FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
Paramètres | |
---|---|
useCache | boolean : true si les enfants mis en cache doivent être retournés s'ils sont disponibles. false si une nouvelle commande ls doit être forcée. |
Retour | |
---|---|
liste des sous-fichiers |
Lance | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
avoir un rendez-vous
public abstract String getDate ()
Wrapper pour FileEntry#getDate()
.
Retour | |
---|---|
String |
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
Renvoie la référence à ddmlib FileEntry
.
Retour | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
Wrapper pour FileEntry#getFullEscapedPath()
.
Retour | |
---|---|
String |
getFullPath
public abstract String getFullPath ()
Wrapper pour FileEntry#getFullPath()
.
Retour | |
---|---|
String |
getPermissions
public abstract String getPermissions ()
Wrapper pour FileEntry#getPermissions()
.
Retour | |
---|---|
String |
isAppFileName
public abstract boolean isAppFileName ()
Wrapper pour FileEntry#isAppFileName()
.
Retour | |
---|---|
boolean |
estRépertoire
public abstract boolean isDirectory ()
Wrapper pour FileEntry#isDirectory()
.
Retour | |
---|---|
boolean |