IFileEntry
public interface IFileEntry
com.android.tradefed.device.IFileEntry |
Definizione dell'interfaccia che fornisce un contratto più semplice e simulabile ai metodi FileEntry
.
Riepilogo
Metodi pubblici | |
---|---|
abstract IFileEntry | findChild (String name) Trova un |
abstract | getChildren (boolean useCache) Restituisce i figli di un |
abstract String | getDate () Wrapper per |
abstract FileListingService.FileEntry | getFileEntry () Restituisce il riferimento a ddmlib |
abstract String | getFullEscapedPath () Wrapper per |
abstract String | getFullPath () Wrapper per |
abstract String | getName () Wrapper per |
abstract String | getPermissions () Wrapper per |
abstract String | getTime () Wrapper per |
abstract boolean | isAppFileName () Wrapper per |
abstract boolean | isDirectory () Wrapper per |
Metodi pubblici
trova Bambino
public abstract IFileEntry findChild (String name)
Trova un IFileEntry
figlio con un nome.
FileEntry#findChild(String)
che prima cercherà anche i figli memorizzati nella cache per il file con il nome specificato e, se non trovato, aggiornerà l'elenco dei file secondari memorizzati nella cache e riprova.Parametri | |
---|---|
name | String |
ritorna | |
---|---|
IFileEntry |
Tiri | |
---|---|
DeviceNotAvailableException |
ottenereChildren
public abstractgetChildren (boolean useCache)
Restituisce i figli di un IFileEntry
.
FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
Parametri | |
---|---|
useCache | boolean : true se i figli memorizzati nella cache devono essere restituiti se disponibili. false se deve essere forzato un nuovo comando ls. |
ritorna | |
---|---|
elenco di file secondari |
Tiri | |
---|---|
DeviceNotAvailableException |
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
Restituisce il riferimento a ddmlib FileEntry
.
ritorna | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
Wrapper per FileEntry#getFullEscapedPath()
.
ritorna | |
---|---|
String |
getFullPath
public abstract String getFullPath ()
Wrapper per FileEntry#getFullPath()
.
ritorna | |
---|---|
String |
ottenere le autorizzazioni
public abstract String getPermissions ()
Wrapper per FileEntry#getPermissions()
.
ritorna | |
---|---|
String |
isAppFileName
public abstract boolean isAppFileName ()
Wrapper per FileEntry#isAppFileName()
.
ritorna | |
---|---|
boolean |
isDirectory
public abstract boolean isDirectory ()
Wrapper per FileEntry#isDirectory()
.
ritorna | |
---|---|
boolean |