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

Résumé

Méthodes publiques

abstract IFileEntry findChild(String name)

Recherche un IFileEntry enfant portant le nom indiqué.

abstract getChildren(boolean useCache)

Renvoie les enfants d'un IFileEntry.

abstract String getDate()

Wrapper pour FileEntry.getDate().

abstract FileListingService.FileEntry getFileEntry()

Renvoie une référence à FileEntry ddmlib.

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

findChild

public abstract IFileEntry findChild (String name)

Recherche un IFileEntry enfant portant le nom indiqué.

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

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 s'ils sont disponibles. 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 ()

Wrapper pour FileEntry.getDate().

Renvoie
String

getFileEntry

public abstract FileListingService.FileEntry getFileEntry ()

Renvoie une référence à FileEntry ddmlib.

Renvoie
FileListingService.FileEntry

getFullEscapedPath

public abstract String getFullEscapedPath ()

Wrapper pour FileEntry.getFullEscapedPath().

Renvoie
String

getFullPath

public abstract String getFullPath ()

Wrapper pour FileEntry.getFullPath().

Renvoie
String

getName

public abstract String getName ()

Wrapper pour FileEntry.getName().

Renvoie
String

getPermissions

public abstract String getPermissions ()

Wrapper pour FileEntry.getPermissions().

Renvoie
String

getTime

public abstract String getTime ()

Wrapper pour FileEntry.getTime().

Renvoie
String

isAppFileName

public abstract boolean isAppFileName ()

Wrapper pour FileEntry.isAppFileName().

Renvoie
boolean

isDirectory

public abstract boolean isDirectory ()

Wrapper pour FileEntry.isDirectory().

Renvoie
boolean