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)
ค้นหา |
abstract
Collection<IFileEntry>
|
getChildren(boolean useCache)
แสดงผลรายการย่อยของ |
abstract
String
|
getDate()
Wrapper สำหรับ |
abstract
FileListingService.FileEntry
|
getFileEntry()
แสดงผลการอ้างอิงไปยัง |
abstract
String
|
getFullEscapedPath()
Wrapper สำหรับ |
abstract
String
|
getFullPath()
Wrapper สำหรับ |
abstract
String
|
getName()
Wrapper สำหรับ |
abstract
String
|
getPermissions()
Wrapper สำหรับ |
abstract
String
|
getTime()
Wrapper สำหรับ |
abstract
boolean
|
isAppFileName()
Wrapper สำหรับ |
abstract
boolean
|
isDirectory()
Wrapper สำหรับ |
เมธอดสาธารณะ
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 |
|
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 |
|
getPermissions
public abstract String getPermissions ()
Wrapper สำหรับ FileEntry.getPermissions()
| การคืนสินค้า | |
|---|---|
String |
|
isAppFileName
public abstract boolean isAppFileName ()
Wrapper สำหรับ FileEntry.isAppFileName()
| การคืนสินค้า | |
|---|---|
boolean |
|
isDirectory
public abstract boolean isDirectory ()
Wrapper สำหรับ FileEntry.isDirectory()
| การคืนสินค้า | |
|---|---|
boolean |
|