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

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

ค้นหาเด็ก

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

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

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

รับชื่อ

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

isDirectory

public abstract boolean isDirectory ()

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

ส่งคืน
boolean