IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


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

สิ่งที่ต้องทำ: ย้ายรายการนี้ไปที่ ddmlib

สรุป

เมธอดสาธารณะ

abstract IFileEntry findChild(String name)

ค้นหา IFileEntry ของรายการย่อยที่มีชื่อที่ระบุ

abstract Collection<IFileEntry> getChildren(boolean useCache)

แสดงผลรายการย่อยของ IFileEntry

abstract String getDate()

Wrapper สำหรับ FileEntry.getDate()

abstract FileListingService.FileEntry getFileEntry()

แสดงผลการอ้างอิงไปยัง FileEntry ของ ddmlib

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 ของรายการย่อยที่มีชื่อที่ระบุ

โดยพื้นฐานแล้วเป็น Wrapper สำหรับ FileEntry.findChild(String) ซึ่ง จะค้นหารายการย่อยที่แคชไว้ก่อนสำหรับไฟล์ที่มีชื่อที่ระบุ และหากไม่พบ ระบบจะรีเฟรชรายการไฟล์ย่อยที่แคชไว้แล้วลองอีกครั้ง

พารามิเตอร์
name String

การคืนสินค้า
IFileEntry

ส่ง
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getChildren

public abstract Collection<IFileEntry> getChildren (boolean useCache)

แสดงผลรายการย่อยของ IFileEntry

โดยพื้นฐานแล้วเป็น Wrapper แบบซิงโครนัสสำหรับ FileListingService.getChildren(FileEntry,boolean,FileListingService.IListingReceiver)

พารามิเตอร์
useCache boolean: true หากควรแสดงผลรายการย่อยที่แคชไว้หากมี false หากควรบังคับใช้คำสั่ง ls ใหม่

การคืนสินค้า
Collection<IFileEntry> รายการไฟล์ย่อย

ส่ง
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getDate

public abstract String getDate ()

Wrapper สำหรับ FileEntry.getDate()

การคืนสินค้า
String

getFileEntry

public abstract FileListingService.FileEntry getFileEntry ()

แสดงผลการอ้างอิงไปยัง FileEntry ของ ddmlib

การคืนสินค้า
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