IFileEntry
  public
  
  
  
  interface
  IFileEntry
  
  
  
| com.android.tradefed.device.IFileEntry | 
介面定義,可為 FileEntry 方法提供更簡單、可模擬的合約。
TODO:將此項目移至 ddmlib
摘要
| 公用方法 | |
|---|---|
| 
        abstract
        
        
        
        
        IFileEntry | 
      findChild(String name)
      找出名稱為指定名稱的子項  | 
| 
        abstract
        
        
        
        
         | 
      getChildren(boolean useCache)
      傳回  | 
| 
        abstract
        
        
        
        
        String | 
      getDate()
      
 | 
| 
        abstract
        
        
        
        
        FileListingService.FileEntry | 
      getFileEntry()
      傳回 ddmlib  | 
| 
        abstract
        
        
        
        
        String | 
      getFullEscapedPath()
       | 
| 
        abstract
        
        
        
        
        String | 
      getFullPath()
      
 | 
| 
        abstract
        
        
        
        
        String | 
      getName()
      
 | 
| 
        abstract
        
        
        
        
        String | 
      getPermissions()
      
 | 
| 
        abstract
        
        
        
        
        String | 
      getTime()
      
 | 
| 
        abstract
        
        
        
        
        boolean | 
      isAppFileName()
      
 | 
| 
        abstract
        
        
        
        
        boolean | 
      isDirectory()
      
 | 
公用方法
findChild
public abstract IFileEntry findChild (String name)
找出具有指定名稱的子項 IFileEntry。
 基本上是 FileEntry.findChild(String) 的包裝函式,也會先搜尋快取子項,找出具有指定名稱的檔案,如果找不到,就重新整理快取的子項檔案清單,然後再次嘗試。
| 參數 | |
|---|---|
| name | String | 
| 傳回 | |
|---|---|
| IFileEntry | |
| 擲回 | |
|---|---|
|  | com.android.tradefed.device.DeviceNotAvailableException | 
| DeviceNotAvailableException | |
getChildren
public abstractgetChildren (boolean useCache) 
傳回 IFileEntry 的子項。
 基本上是 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 ()
FileEntry.getFullEscapedPath() 的包裝函式。
| 傳回 | |
|---|---|
| String | |
