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 .

TODO : déplacez ceci dans ddmlib

Résumé

Méthodes publiques

abstract IFileEntry findChild (String name)

Recherche un enfant IFileEntry avec 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 à 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 avec le nom donné.

Fondamentalement, un wrapper pour 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 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 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

obtenirNom

public abstract String getName ()

Wrapper pour FileEntry#getName() .

Retour
String

getPermissions

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