IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


Definição de interface que fornece um contrato mais simples e fictício para métodos FileEntry .

TODO: mova isso para ddmlib

Resumo

Métodos públicos

abstract IFileEntry findChild (String name)

Localiza um IFileEntry filho com o nome fornecido.

abstract getChildren (boolean useCache)

Retorna os filhos de um IFileEntry .

abstract String getDate ()

Wrapper para FileEntry#getDate() .

abstract FileListingService.FileEntry getFileEntry ()

Referência de retorno para o ddmlib FileEntry .

abstract String getFullEscapedPath ()

Wrapper para FileEntry#getFullEscapedPath() .

abstract String getFullPath ()

Wrapper para FileEntry#getFullPath() .

abstract String getName ()

Wrapper para FileEntry#getName() .

abstract String getPermissions ()

Wrapper para FileEntry#getPermissions() .

abstract String getTime ()

Wrapper para FileEntry#getTime() .

abstract boolean isAppFileName ()

Wrapper para FileEntry#isAppFileName() .

abstract boolean isDirectory ()

Wrapper para FileEntry#isDirectory() .

Métodos públicos

encontrarCriança

public abstract IFileEntry findChild (String name)

Localiza um IFileEntry filho com o nome fornecido.

Basicamente, um wrapper para FileEntry#findChild(String) que também pesquisará primeiro os filhos em cache para o arquivo com o nome fornecido e, se não for encontrado, atualizará a lista de arquivos filhos em cache e tentará novamente.

Parâmetros
name String

devoluções
IFileEntry

lances
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getChildren

public abstract  getChildren (boolean useCache)

Retorna os filhos de um IFileEntry .

Basicamente, um wrapper síncrono para FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)

Parâmetros
useCache boolean : true se os filhos em cache devem ser retornados, se disponíveis. false se um novo comando ls deve ser forçado.

devoluções
lista de sub-arquivos

lances
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getData

public abstract String getDate ()

Wrapper para FileEntry#getDate() .

devoluções
String

getFileEntry

public abstract FileListingService.FileEntry getFileEntry ()

Referência de retorno para o ddmlib FileEntry .

devoluções
FileListingService.FileEntry

getFullEscapedPath

public abstract String getFullEscapedPath ()

Wrapper para FileEntry#getFullEscapedPath() .

devoluções
String

getFullPath

public abstract String getFullPath ()

Wrapper para FileEntry#getFullPath() .

devoluções
String

obterNome

public abstract String getName ()

Wrapper para FileEntry#getName() .

devoluções
String

obterPermissões

public abstract String getPermissions ()

Wrapper para FileEntry#getPermissions() .

devoluções
String

consiga tempo

public abstract String getTime ()

Wrapper para FileEntry#getTime() .

devoluções
String

isAppFileName

public abstract boolean isAppFileName ()

Wrapper para FileEntry#isAppFileName() .

devoluções
boolean

isDirectory

public abstract boolean isDirectory ()

Wrapper para FileEntry#isDirectory() .

devoluções
boolean