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