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: move this into ddmlib

Resumo

Métodos públicos

abstract IFileEntry findChild(String name)

Encontra uma IFileEntry filha com o nome informado.

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 uma IFileEntry filha com o nome informado.

Basicamente, um wrapper para FileEntry.findChild(String) que também vai procurar primeiro os filhos em cache para arquivos com o nome fornecido e, se não for encontrado, atualize a lista de arquivos filhos em cache e tente 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 as crianças em cache precisarem ser retornadas quando disponíveis. false se um novo comando ls precisa 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