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 |
abstract
|
getChildren(boolean useCache)
Renvoie les enfants d'un |
abstract
String
|
getDate()
Enveloppe de |
abstract
FileListingService.FileEntry
|
getFileEntry()
Renvoie une référence à l' |
abstract
String
|
getFullEscapedPath()
Enveloppe de |
abstract
String
|
getFullPath()
Enveloppe de |
abstract
String
|
getName()
Enveloppe de |
abstract
String
|
getPermissions()
Enveloppe de |
abstract
String
|
getTime()
Enveloppe de |
abstract
boolean
|
isAppFileName()
Enveloppe de |
abstract
boolean
|
isDirectory()
Enveloppe de |
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 abstractgetChildren (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 |
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 |
getPermissions
public abstract String getPermissions ()
Enveloppe de FileEntry.getPermissions()
.
Renvoie | |
---|---|
String |
isAppFileName
public abstract boolean isAppFileName ()
Enveloppe de FileEntry.isAppFileName()
.
Renvoie | |
---|---|
boolean |
isDirectory
public abstract boolean isDirectory ()
Enveloppe de FileEntry.isDirectory()
.
Renvoie | |
---|---|
boolean |