IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


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

TODO: spostalo in ddmlib

Riepilogo

Metodi pubblici

abstract IFileEntry findChild (String name)

Trova un figlio IFileEntry con il nome specificato.

abstract getChildren (boolean useCache)

Restituisce gli elementi figlio di IFileEntry .

abstract String getDate ()

Wrapper per FileEntry#getDate() .

abstract FileListingService.FileEntry getFileEntry ()

Restituisce 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 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 abstract  getChildren (boolean useCache)

Restituisce gli elementi figlio di 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.

ritorna
elenco di file secondari

Getta
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getDate

public abstract String getDate ()

Wrapper per FileEntry#getDate() .

ritorna
String

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

getNome

public abstract String getName ()

Wrapper per FileEntry#getName() .

ritorna
String

getPermissions

public abstract String getPermissions ()

Wrapper per FileEntry#getPermissions() .

ritorna
String

prendi tempo

public abstract String getTime ()

Wrapper per FileEntry#getTime() .

ritorna
String

isAppFileName

public abstract boolean isAppFileName ()

Wrapper per FileEntry#isAppFileName() .

ritorna
boolean

isDirectory

public abstract boolean isDirectory ()

Wrapper per FileEntry#isDirectory() .

ritorna
boolean