IFileEntry
public
interface
IFileEntry
com.android.tradefed.device.IFileEntry |
Interface definition that provides simpler, mockable contract to
FileEntry
methods.
Summary
Public methods | |
---|---|
abstract
IFileEntry
|
findChild(String name)
Finds a child |
abstract
|
getChildren(boolean useCache)
Returns the children of a |
abstract
String
|
getDate()
Wrapper for |
abstract
FileListingService.FileEntry
|
getFileEntry()
Return reference to the ddmlib |
abstract
String
|
getFullEscapedPath()
Wrapper for |
abstract
String
|
getFullPath()
Wrapper for |
abstract
String
|
getName()
Wrapper for |
abstract
String
|
getPermissions()
Wrapper for |
abstract
String
|
getTime()
Wrapper for |
abstract
boolean
|
isAppFileName()
Wrapper for |
abstract
boolean
|
isDirectory()
Wrapper for |
Public methods
findChild
public abstract IFileEntry findChild (String name)
Finds a child IFileEntry
with given name.
FileEntry#findChild(String)
that
will also first search the cached children for file with given name, and if not found,
refresh the cached child file list and attempt again.
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
IFileEntry |
Throws | |
---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getChildren
public abstractgetChildren (boolean useCache)
Returns the children of a IFileEntry
.
FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
Parameters | |
---|---|
useCache |
boolean : true if the cached children should be returned if available.
false if a new ls command should be forced. |
Returns | |
---|---|
|
list of sub files |
Throws | |
---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
Return reference to the ddmlib FileEntry
.
Returns | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
Wrapper for FileEntry#getFullEscapedPath()
.
Returns | |
---|---|
String |
getFullPath
public abstract String getFullPath ()
Wrapper for FileEntry#getFullPath()
.
Returns | |
---|---|
String |
getPermissions
public abstract String getPermissions ()
Wrapper for FileEntry#getPermissions()
.
Returns | |
---|---|
String |
isAppFileName
public abstract boolean isAppFileName ()
Wrapper for FileEntry#isAppFileName()
.
Returns | |
---|---|
boolean |
isDirectory
public abstract boolean isDirectory ()
Wrapper for FileEntry#isDirectory()
.
Returns | |
---|---|
boolean |