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 cette section dans ddmlib

Résumé

Méthodes publiques

abstract IFileEntry findChild(String name)

Recherche un IFileEntry enfant avec le nom donné.

abstract getChildren(boolean useCache)

Renvoie les enfants d'un IFileEntry.

abstract String getDate()

Enveloppe de FileEntry.getDate().

abstract FileListingService.FileEntry getFileEntry()

Renvoie une référence à l'FileEntry ddmlib.

abstract String getFullEscapedPath()

Enveloppe de FileEntry.getFullEscapedPath().

abstract String getFullPath()

Enveloppe de FileEntry.getFullPath().

abstract String getName()

Enveloppe de FileEntry.getName().

abstract String getPermissions()

Enveloppe de FileEntry.getPermissions().

abstract String getTime()

Enveloppe de FileEntry.getTime().

abstract boolean isAppFileName()

Enveloppe de FileEntry.isAppFileName().

abstract boolean isDirectory()

Enveloppe de FileEntry.isDirectory().

Méthodes publiques

findChild

public abstract IFileEntry findChild (String name)

Recherche un IFileEntry enfant avec le nom donné.

Il s'agit essentiellement d'un wrapper pour FileEntry.findChild(String) qui recherche également d'abord dans les enfants mis en cache le fichier portant le nom donné. Si le fichier n'est pas trouvé, la liste des fichiers enfants mis en cache est actualisée et la tentative est répétée.

Paramètres
name String

Renvoie
IFileEntry

Génère
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getChildren

public abstract  getChildren (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, le cas échéant. false si une nouvelle commande ls doit être forcée.

Renvoie
liste des sous-fichiers

Génère
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getDate

public abstract String getDate ()

Enveloppe de FileEntry.getDate().

Renvoie
String

getFileEntry

public abstract FileListingService.FileEntry getFileEntry ()

Renvoie une référence à l'FileEntry ddmlib.

Renvoie
FileListingService.FileEntry

getFullEscapedPath

public abstract String getFullEscapedPath ()

Enveloppe de FileEntry.getFullEscapedPath().

Renvoie
String

getFullPath

public abstract String getFullPath ()

Enveloppe de FileEntry.getFullPath().

Renvoie
String

getName

public abstract String getName ()

Enveloppe de FileEntry.getName().

Renvoie
String

getPermissions

public abstract String getPermissions ()

Enveloppe de FileEntry.getPermissions().

Renvoie
String

getTime

public abstract String getTime ()

Enveloppe de FileEntry.getTime().

Renvoie
String

isAppFileName

public abstract boolean isAppFileName ()

Enveloppe de FileEntry.isAppFileName().

Renvoie
boolean

isDirectory

public abstract boolean isDirectory ()

Enveloppe de FileEntry.isDirectory().

Renvoie
boolean