IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


Definizione dell'interfaccia che fornisce un contratto più semplice e simulabile ai metodi FileEntry.

TODO: move this into ddmlib

Riepilogo

Metodi pubblici

abstract IFileEntry findChild(String name)

Trova un figlio IFileEntry con il nome specificato.

abstract getChildren(boolean useCache)

Restituisce i figli di un IFileEntry.

abstract String getDate()

Wrapper per FileEntry.getDate().

abstract FileListingService.FileEntry getFileEntry()

Restituisci il riferimento a ddmlib FileEntry.

abstract String getFullEscapedPath()

Wrapper per FileEntry.getFullEscapedPath().

abstract String getFullPath()

Wrapper per FileEntry.getFullPath().

abstract String getName()

Wrapper per FileEntry.getName().

abstract String getPermissions()

Wrapper per FileEntry.getPermissions().

abstract String getTime()

Wrapper per FileEntry.getTime().

abstract boolean isAppFileName()

Wrapper per FileEntry.isAppFileName().

abstract boolean isDirectory()

Wrapper per FileEntry.isDirectory().

Metodi pubblici

findChild

public abstract IFileEntry findChild (String name)

Trova un figlio IFileEntry con il nome specificato.

Fondamentalmente un wrapper per FileEntry.findChild(String) che cercherà prima i figli memorizzati nella cache per il file con il nome specificato e, se non lo trova, aggiornerà l'elenco dei file figlio memorizzati nella cache e riproverà.

Parametri
name String

Ritorni
IFileEntry

Lanci
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getChildren

public abstract  getChildren (boolean useCache)

Restituisce i figli di un IFileEntry.

Fondamentalmente un wrapper sincrono per 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.

Ritorni
elenco dei file secondari

Lanci
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getDate

public abstract String getDate ()

Wrapper per FileEntry.getDate().

Ritorni
String

getFileEntry

public abstract FileListingService.FileEntry getFileEntry ()

Restituisci il riferimento a ddmlib FileEntry.

Ritorni
FileListingService.FileEntry

getFullEscapedPath

public abstract String getFullEscapedPath ()

Wrapper per FileEntry.getFullEscapedPath().

Ritorni
String

getFullPath

public abstract String getFullPath ()

Wrapper per FileEntry.getFullPath().

Ritorni
String

getName

public abstract String getName ()

Wrapper per FileEntry.getName().

Ritorni
String

getPermissions

public abstract String getPermissions ()

Wrapper per FileEntry.getPermissions().

Ritorni
String

getTime

public abstract String getTime ()

Wrapper per FileEntry.getTime().

Ritorni
String

isAppFileName

public abstract boolean isAppFileName ()

Wrapper per FileEntry.isAppFileName().

Ritorni
boolean

isDirectory

public abstract boolean isDirectory ()

Wrapper per FileEntry.isDirectory().

Ritorni
boolean