IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


הגדרת ממשק שמספקת חוזה פשוט יותר שניתן ליצור לו מודלים ל-methods של FileEntry.

TODO: move this into ddmlib

סיכום

שיטות ציבוריות

abstract IFileEntry findChild(String name)

חיפוש של צאצא IFileEntry עם שם נתון.

abstract getChildren(boolean useCache)

הפונקציה מחזירה את הצאצאים של IFileEntry.

abstract String getDate()

Wrapper ל-FileEntry.getDate().

abstract FileListingService.FileEntry getFileEntry()

החזרת הפניה ל-ddmlib FileEntry.

abstract String getFullEscapedPath()

Wrapper ל-FileEntry.getFullEscapedPath().

abstract String getFullPath()

Wrapper ל-FileEntry.getFullPath().

abstract String getName()

Wrapper ל-FileEntry.getName().

abstract String getPermissions()

Wrapper ל-FileEntry.getPermissions().

abstract String getTime()

Wrapper ל-FileEntry.getTime().

abstract boolean isAppFileName()

Wrapper ל-FileEntry.isAppFileName().

abstract boolean isDirectory()

Wrapper ל-FileEntry.isDirectory().

שיטות ציבוריות

findChild

public abstract IFileEntry findChild (String name)

חיפוש של צאצא IFileEntry עם שם נתון.

בעצם, חבילה של FileEntry.findChild(String) שתתחיל לחפש קודם את הקבצים הצאצאים ששמורים במטמון עם השם הנתון, ואם לא תמצא אותם, תעדכן את רשימת הקבצים הצאצאים ששמורים במטמון ותנסה שוב.

פרמטרים
name String

החזרות
IFileEntry

זריקות
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getChildren

public abstract  getChildren (boolean useCache)

הפונקציה מחזירה את הצאצאים של IFileEntry.

בעיקרון, הוא מעטפת סינכרונית של FileListingService.getChildren(FileEntry, boolean, FileListingService.IListingReceiver)

פרמטרים
useCache boolean: true אם צריך להחזיר את הצאצאים שנשמרו במטמון, אם הם זמינים. false אם צריך לאלץ הפעלה של פקודה חדשה של ls.

החזרות
רשימת קבצים משניים

זריקות
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getDate

public abstract String getDate ()

Wrapper ל-FileEntry.getDate().

החזרות
String

getFileEntry

public abstract FileListingService.FileEntry getFileEntry ()

החזרת הפניה ל-ddmlib FileEntry.

החזרות
FileListingService.FileEntry

getFullEscapedPath

public abstract String getFullEscapedPath ()

Wrapper ל-FileEntry.getFullEscapedPath().

החזרות
String

getFullPath

public abstract String getFullPath ()

Wrapper ל-FileEntry.getFullPath().

החזרות
String

getName

public abstract String getName ()

Wrapper ל-FileEntry.getName().

החזרות
String

getPermissions

public abstract String getPermissions ()

Wrapper ל-FileEntry.getPermissions().

החזרות
String

getTime

public abstract String getTime ()

Wrapper ל-FileEntry.getTime().

החזרות
String

isAppFileName

public abstract boolean isAppFileName ()

Wrapper ל-FileEntry.isAppFileName().

החזרות
boolean

isDirectory

public abstract boolean isDirectory ()

Wrapper ל-FileEntry.isDirectory().

החזרות
boolean