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 au 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
portant le nom donné.
FileEntry#findChild(String)
qui recherchera également d'abord dans les enfants mis en cache le fichier portant le nom donné, et s'il n'est pas trouvé, actualisera la liste des fichiers enfants mis en cache et réessayera.Paramètres | |
---|---|
name | String |
Retour | |
---|---|
IFileEntry |
Jetés | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
obtenir des enfants
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 renvoyés s'ils sont disponibles. false si une nouvelle commande ls doit être forcée. |
Retour | |
---|---|
liste des sous-fichiers |
Jetés | |
---|---|
| 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 au ddmlib FileEntry
.
Retour | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
Wrapper pour FileEntry#getFullEscapedPath()
.
Retour | |
---|---|
String |
obtenirFullPath
public abstract String getFullPath ()
Wrapper pour FileEntry#getFullPath()
.
Retour | |
---|---|
String |
obtenir des autorisations
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 |