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 |
abstract
|
getChildren(boolean useCache)
Retorna os filhos de um |
abstract
String
|
getDate()
Wrapper para |
abstract
FileListingService.FileEntry
|
getFileEntry()
Retorna a referência ao |
abstract
String
|
getFullEscapedPath()
Wrapper para |
abstract
String
|
getFullPath()
Wrapper para |
abstract
String
|
getName()
Wrapper para |
abstract
String
|
getPermissions()
Wrapper para |
abstract
String
|
getTime()
Wrapper para |
abstract
boolean
|
isAppFileName()
Wrapper para |
abstract
boolean
|
isDirectory()
Wrapper para |
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 abstractgetChildren (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 |
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 |
getPermissions
public abstract String getPermissions ()
Wrapper para FileEntry.getPermissions()
.
Retorna | |
---|---|
String |
isAppFileName
public abstract boolean isAppFileName ()
Wrapper para FileEntry.isAppFileName()
.
Retorna | |
---|---|
boolean |
isDirectory
public abstract boolean isDirectory ()
Wrapper para FileEntry.isDirectory()
.
Retorna | |
---|---|
boolean |