IFileEntry
public interface IFileEntry
com.android.tradefed.device.IFileEntry |
Definizione dell'interfaccia che fornisce un contratto fittizio più semplice ai metodi FileEntry
.
Riepilogo
Metodi pubblici | |
---|---|
abstract IFileEntry | findChild (String name) Trova un figlio |
abstract | getChildren (boolean useCache) Restituisce gli elementi figlio di |
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
findChild
public abstract IFileEntry findChild (String name)
Trova un figlio IFileEntry
con il nome specificato.
FileEntry#findChild(String)
che cercherà prima 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 riproverà.Parametri | |
---|---|
name | String |
ritorna | |
---|---|
IFileEntry |
Getta | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getChildren
public abstractgetChildren (boolean useCache)
Restituisce gli elementi figlio di 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 |
Getta | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
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 |
getPermissions
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 |