ไอไฟล์เอนทรี

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()

วิธีการสาธารณะ

ค้นหาเด็ก

public abstract IFileEntry findChild (String name)

ค้นหาลูก IFileEntry ด้วยชื่อที่กำหนด

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

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

การส่งคืน
IFileEntry

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

รับเด็ก ๆ

public abstract  getChildren (boolean useCache)

ส่งคืนลูกของ IFileEntry

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

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

การส่งคืน
รายการไฟล์ย่อย

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

รับวันที่

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

รับFullPath

public abstract String getFullPath ()

Wrapper สำหรับ FileEntry#getFullPath()

การส่งคืน
String

รับชื่อ

public abstract String getName ()

Wrapper สำหรับ FileEntry#getName()

การส่งคืน
String

รับสิทธิ์

public abstract String getPermissions ()

Wrapper สำหรับ FileEntry#getPermissions()

การส่งคืน
String

รับเวลา

public abstract String getTime ()

Wrapper สำหรับ FileEntry#getTime()

การส่งคืน
String

isAppFileName

public abstract boolean isAppFileName ()

Wrapper สำหรับ FileEntry#isAppFileName()

การส่งคืน
boolean

เป็นไดเรกทอรี

public abstract boolean isDirectory ()

Wrapper สำหรับ FileEntry#isDirectory()

การส่งคืน
boolean