IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


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

DA FARE: spostalo in ddmlib

Riepilogo

Metodi pubblici

abstract IFileEntry findChild (String name)

Trova un IFileEntry figlio 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 ()

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 IFileEntry figlio con il nome specificato.

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

Parametri
name String

ritorna
IFileEntry

Lancia
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 è necessario forzare un nuovo comando ls.

ritorna
elenco dei file secondari

Lancia
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

èNomeFileApp

public abstract boolean isAppFileName ()

Wrapper per FileEntry#isAppFileName() .

ritorna
boolean

isDirectory

public abstract boolean isDirectory ()

Wrapper per FileEntry#isDirectory() .

ritorna
boolean