public interface

IFileEntry

com.android.tradefed.device.IFileEntry

Class Overview

Interface definition that provides simpler, mockable contract to FileListingService.FileEntry methods.

TODO: move this into ddmlib

Summary

Public Methods
abstract IFileEntry findChild(String name)
Finds a child IFileEntry with given name.
abstract Collection<IFileEntry> getChildren(boolean useCache)
Returns the children of a IFileEntry.
abstract String getDate()
Wrapper for getDate().
abstract FileListingService.FileEntry getFileEntry()
Return reference to the ddmlib FileListingService.FileEntry.
abstract String getFullEscapedPath()
abstract String getFullPath()
Wrapper for getFullPath().
abstract String getName()
Wrapper for getName().
abstract String getPermissions()
Wrapper for getPermissions().
abstract String getTime()
Wrapper for getTime().
abstract boolean isAppFileName()
Wrapper for isAppFileName().
abstract boolean isDirectory()
Wrapper for isDirectory().

Public Methods

public abstract 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.

public abstract Collection<IFileEntry> getChildren (boolean useCache)

Returns the children of a IFileEntry.

Basically a synchronous wrapper for getChildren(FileEntry, boolean, FileListingService.IListingReceiver)

Parameters
useCache true if the cached children should be returned if available. false if a new ls command should be forced.
Returns
  • list of sub files

public abstract String getDate ()

Wrapper for getDate().

public abstract FileListingService.FileEntry getFileEntry ()

Return reference to the ddmlib FileListingService.FileEntry.

public abstract String getFullEscapedPath ()

Wrapper for getFullEscapedPath().

public abstract String getFullPath ()

Wrapper for getFullPath().

public abstract String getName ()

Wrapper for getName().

public abstract String getPermissions ()

Wrapper for getPermissions().

public abstract String getTime ()

Wrapper for getTime().

public abstract boolean isAppFileName ()

Wrapper for isAppFileName().

public abstract boolean isDirectory ()

Wrapper for isDirectory().