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
새 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 |
|
isAppFileName
public abstract boolean isAppFileName ()
FileEntry.isAppFileName()의 래퍼입니다.
| 반환 값 | |
|---|---|
boolean |
|