IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


Definição de interface que fornece um contrato mais simples e simulável para métodos FileEntry.

TODO: mover isso para ddmlib

Resumo

Métodos públicos

abstract IFileEntry findChild(String name)

Encontra um IFileEntry filho com o nome especificado.

abstract getChildren(boolean useCache)

Retorna os filhos de um IFileEntry.

abstract String getDate()

Wrapper para FileEntry.getDate().

abstract FileListingService.FileEntry getFileEntry()

Retorna a referência ao FileEntry da ddmlib.

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

findChild

public abstract IFileEntry findChild (String name)

Encontra um IFileEntry filho com o nome especificado.

Basicamente, um wrapper para FileEntry.findChild(String) que também pesquisa primeiro os filhos em cache por um arquivo com o nome especificado e, se não for encontrado, atualiza a lista de arquivos filhos em cache e tenta novamente.

Parâmetros
name String

Retorna
IFileEntry

Gera
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 armazenados em cache devem ser retornados, caso estejam disponíveis. false se um novo comando ls precisar ser forçado.

Retorna
lista de subarquivos

Gera
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getDate

public abstract String getDate ()

Wrapper para FileEntry.getDate().

Retorna
String

getFileEntry

public abstract FileListingService.FileEntry getFileEntry ()

Retorna a referência ao FileEntry da ddmlib.

Retorna
FileListingService.FileEntry

getFullEscapedPath

public abstract String getFullEscapedPath ()

Wrapper para FileEntry.getFullEscapedPath().

Retorna
String

getFullPath

public abstract String getFullPath ()

Wrapper para FileEntry.getFullPath().

Retorna
String

getName

public abstract String getName ()

Wrapper para FileEntry.getName().

Retorna
String

getPermissions

public abstract String getPermissions ()

Wrapper para FileEntry.getPermissions().

Retorna
String

getTime

public abstract String getTime ()

Wrapper para FileEntry.getTime().

Retorna
String

isAppFileName

public abstract boolean isAppFileName ()

Wrapper para FileEntry.isAppFileName().

Retorna
boolean

isDirectory

public abstract boolean isDirectory ()

Wrapper para FileEntry.isDirectory().

Retorna
boolean