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éplacez ceci dans ddmlib

Résumé

Méthodes publiques

abstract IFileEntry findChild (String name)

Recherche un enfant IFileEntry portant le nom donné.

abstract getChildren (boolean useCache)

Renvoie les enfants d'un IFileEntry .

abstract String getDate ()

Wrapper pour FileEntry#getDate() .

abstract FileListingService.FileEntry getFileEntry ()

Renvoie la référence au ddmlib FileEntry .

abstract String getFullEscapedPath ()

Wrapper pour FileEntry#getFullEscapedPath() .

abstract String getFullPath ()

Wrapper pour FileEntry#getFullPath() .

abstract String getName ()

Wrapper pour FileEntry#getName() .

abstract String getPermissions ()

Wrapper pour FileEntry#getPermissions() .

abstract String getTime ()

Wrapper pour FileEntry#getTime() .

abstract boolean isAppFileName ()

Wrapper pour FileEntry#isAppFileName() .

abstract boolean isDirectory ()

Wrapper pour FileEntry#isDirectory() .

Méthodes publiques

trouverEnfant

public abstract IFileEntry findChild (String name)

Recherche un enfant IFileEntry portant le nom donné.

Fondamentalement, un wrapper pour 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 abstract  getChildren (boolean useCache)

Renvoie les enfants d'un IFileEntry .

Fondamentalement, 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.

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

obtenirNom

public abstract String getName ()

Wrapper pour FileEntry#getName() .

Retour
String

obtenir des autorisations

public abstract String getPermissions ()

Wrapper pour FileEntry#getPermissions() .

Retour
String

obtenir du temps

public abstract String getTime ()

Wrapper pour FileEntry#getTime() .

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