FileEntryWrapper

class FileEntryWrapper
extends Object implements IFileEntry

java.lang.Object
   ↳ com.android.tradefed.device.FileEntryWrapper


Implementation of a IFileEntry.

Summary

Public methods

IFileEntry findChild(String name)

Finds a child IFileEntry with given name.

Collection<IFileEntry> getChildren(boolean useCache)

Returns the children of a IFileEntry.

String getDate()

Wrapper for getDate().

FileListingService.FileEntry getFileEntry()

Return reference to the ddmlib FileListingService.FileEntry.

String getFullEscapedPath()

Wrapper for getFullEscapedPath().

String getFullPath()

Wrapper for getFullPath().

String getName()

Wrapper for getName().

String getPermissions()

Wrapper for getPermissions().

String getTime()

Wrapper for getTime().

boolean isAppFileName()

Wrapper for isAppFileName().

boolean isDirectory()

Wrapper for isDirectory().

Public methods

findChild

IFileEntry findChild (String name)

Finds a child IFileEntry with given name.

Basically a wrapper for 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
DeviceNotAvailableException

getChildren

Collection<IFileEntry> getChildren (boolean useCache)

Returns the children of a IFileEntry.

Basically a synchronous wrapper for 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
Collection<IFileEntry> list of sub files
Throws
DeviceNotAvailableException

getDate

String getDate ()

Wrapper for getDate().

Returns
String

getFileEntry

FileListingService.FileEntry getFileEntry ()

Return reference to the ddmlib FileListingService.FileEntry.

Returns
FileListingService.FileEntry

getFullEscapedPath

String getFullEscapedPath ()

Wrapper for getFullEscapedPath().

Returns
String

getFullPath

String getFullPath ()

Wrapper for getFullPath().

Returns
String

getName

String getName ()

Wrapper for getName().

Returns
String

getPermissions

String getPermissions ()

Wrapper for getPermissions().

Returns
String

getTime

String getTime ()

Wrapper for getTime().

Returns
String

isAppFileName

boolean isAppFileName ()

Wrapper for isAppFileName().

Returns
boolean

isDirectory

boolean isDirectory ()

Wrapper for isDirectory().

Returns
boolean