IFileEntry
public
interface
IFileEntry
com.android.tradefed.device.IFileEntry |
คําจํากัดความอินเทอร์เฟซที่ให้สัญญาที่จำลองได้ง่ายขึ้นสําหรับเมธอด FileEntry
สิ่งที่ต้องทํา: ย้ายข้อมูลนี้ไปยัง ddmlib
สรุป
เมธอดสาธารณะ | |
---|---|
abstract
IFileEntry
|
findChild(String name)
ค้นหา |
abstract
|
getChildren(boolean useCache)
แสดงผลรายการย่อยของ |
abstract
String
|
getDate()
Wrapper สำหรับ |
abstract
FileListingService.FileEntry
|
getFileEntry()
แสดงการอ้างอิงไปยัง ddmlib |
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 abstractgetChildren (boolean useCache)
แสดงผลรายการย่อยของ IFileEntry
โดยพื้นฐานแล้วคือ Wrapper แบบซิงโครนัสสําหรับ FileListingService.getChildren(FileEntry, boolean, FileListingService.IListingReceiver)
พารามิเตอร์ | |
---|---|
useCache |
boolean : true หากต้องการให้แสดงรายการย่อยที่แคชไว้ (หากมี)
false หากต้องการบังคับใช้คำสั่ง ls ใหม่ |
คิกรีเทิร์น | |
---|---|
|
รายการไฟล์ย่อย |
โยน | |
---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
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 |
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 |