IFileEntry

public interface IFileEntry

com.android.tradefed.device.IFileEntry


คำจำกัดความของอินเทอร์เฟซที่ให้สัญญาที่ง่ายขึ้นและจำลองได้สำหรับเมธอด FileEntry

สิ่งที่ต้องทำ: ย้ายข้อมูลนี้ไปที่ 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 ที่มีชื่อที่ระบุ

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

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

คิกรีเทิร์น
IFileEntry

การขว้าง
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getChildren

public abstract  getChildren (boolean useCache)

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

ซึ่งเป็น Wrapper แบบซิงโครนัสสำหรับ 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