IFileEntry
public interface IFileEntry
com.android.tradefed.device.IFileEntry |
FileEntry
메서드에 더 간단하고 모의 가능한 계약을 제공하는 인터페이스 정의입니다.
요약
공개 메소드 | |
---|---|
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 . 새로운 ls 명령을 강제로 실행해야 하는 경우 false . |
보고 | |
---|---|
하위 파일 목록 |
던지기 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getFileEntry
public abstract FileListingService.FileEntry getFileEntry ()
ddmlib FileEntry
에 대한 참조를 반환합니다.
보고 | |
---|---|
FileListingService.FileEntry |
getFullEscapedPath
public abstract String getFullEscapedPath ()
FileEntry#getFullEscapedPath()
에 대한 래퍼입니다.
보고 | |
---|---|
String |
getPermissions
public abstract String getPermissions ()
FileEntry#getPermissions()
에 대한 래퍼입니다.
보고 | |
---|---|
String |
isApp파일 이름
public abstract boolean isAppFileName ()
FileEntry#isAppFileName()
에 대한 래퍼입니다.
보고 | |
---|---|
boolean |