จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

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

ขว้าง
DeviceNotAvailableException

รับเด็ก

public abstract  getChildren (boolean useCache)

ส่งกลับชายน์ของ IFileEntry

โดยทั่วไปแล้ว wrapper แบบซิงโครนัสสำหรับ FileListingService#getChildren(FileEntry, boolean, FileListingService.IListingReceiver)

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

คืนสินค้า
รายชื่อไฟล์ย่อย

ขว้าง
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

รับสิทธิ์

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