FileListingService.FileEntry
public
static
final
class
FileListingService.FileEntry
extends Object
| java.lang.Object | |
| ↳ | com.android.ddmlib.FileListingService.FileEntry |
디렉터리의 항목을 나타냅니다. 파일 또는 디렉터리일 수 있습니다.
요약
공개 생성자 | |
|---|---|
FileEntry(FileListingService.FileEntry parent, String name, int type, boolean isRoot)
새 파일 항목을 만듭니다. |
|
공개 메서드 | |
|---|---|
static
String
|
escape(String entryName)
항목 이름의 이스케이프된 버전을 반환합니다. |
FileListingService.FileEntry
|
findChild(String name)
이름과 일치하는 하위 |
FileEntry[]
|
getCachedChildren()
항목의 캐시된 하위 항목을 반환합니다. |
String
|
getDate()
|
String
|
getFullEscapedPath()
항목의 완전히 이스케이프된 경로를 반환합니다. |
String
|
getFullPath()
항목의 전체 경로를 반환합니다. |
String
|
getGroup()
|
String
|
getInfo()
항목의 추가 정보를 반환합니다. |
String
|
getName()
항목의 이름을 반환합니다. |
String
|
getOwner()
|
FileListingService.FileEntry
|
getParent()
상위 항목을 반환합니다. |
String[]
|
getPathSegments()
경로를 세그먼트 목록으로 반환합니다. |
String
|
getPermissions()
|
String
|
getSize()
|
int
|
getSizeValue()
항목의 크기를 반환합니다. |
String
|
getTime()
|
int
|
getType()
항목 유형을 int로 반환합니다. 이는 TYPE_(...) 상수 중 하나와 일치합니다. |
boolean
|
isAppFileName()
파일 이름이 애플리케이션 패키지 이름인지 여부를 반환합니다. |
boolean
|
isApplicationPackage()
항목이 유효한 애플리케이션 패키지인지 여부를 반환합니다. |
boolean
|
isDirectory()
항목이 폴더인지 폴더 링크인지 반환합니다. |
boolean
|
isRoot()
항목이 루트인지 여부를 반환합니다. |
void
|
setType(int type)
새 유형을 설정합니다. |
보호된 메서드 | |
|---|---|
void
|
fillPathBuilder(StringBuilder pathBuilder, boolean escapePath)
전체 경로로 pathBuilder를 재귀적으로 채웁니다. |
void
|
fillPathSegments(
전체 경로로 세그먼트 목록을 재귀적으로 채웁니다. |
공개 생성자
FileEntry
public FileEntry (FileListingService.FileEntry parent, String name, int type, boolean isRoot)
새 파일 항목을 만듭니다.
| 매개변수 | |
|---|---|
parent |
FileListingService.FileEntry: 상위 항목 또는 항목이 루트인 경우 null |
name |
String: 항목 이름 |
type |
int: 항목 유형입니다. FileListingService.TYPE_FILE, FileListingService.TYPE_DIRECTORY, FileListingService.TYPE_OTHER 중 하나일 수 있습니다. |
isRoot |
boolean: 루트 디렉터리인지 여부입니다. |
공개 메서드
이스케이프
public static String escape (String entryName)
항목 이름의 이스케이프된 버전을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
findChild
public FileListingService.FileEntry findChild (String name)
이름과 일치하는 하위 FileEntry을 반환합니다. 캐시된 자식 목록을 사용합니다.
| 매개변수 | |
|---|---|
name |
String: 반환할 하위 요소의 이름입니다. |
| 반환 값 | |
|---|---|
FileListingService.FileEntry |
이름과 일치하는 FileEntry 또는 null |
getCachedChildren
public FileEntry[] getCachedChildren ()
항목의 캐시된 하위 항목을 반환합니다. FileListingService.getChildren() 호출로 생성된 캐시를 반환합니다.
| 반환 값 | |
|---|---|
FileEntry[] |
|
getDate
public String getDate ()
ls에서 반환된 항목의 날짜 문자열을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getFullEscapedPath
public String getFullEscapedPath ()
항목의 완전히 이스케이프된 경로를 반환합니다. 이 경로는 셸 명령줄에서 안전하게 사용할 수 있습니다.
| 반환 값 | |
|---|---|
String |
FileListingService.FILE_SEPARATOR을 구분자로 사용하는 경로 문자열 |
getFullPath
public String getFullPath ()
항목의 전체 경로를 반환합니다.
| 반환 값 | |
|---|---|
String |
FileListingService.FILE_SEPARATOR을 구분자로 사용하는 경로 문자열 |
getGroup
public String getGroup ()
ls에서 반환된 항목의 그룹 소유자를 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getInfo
public String getInfo ()
항목의 추가 정보를 반환합니다.
링크의 경우 링크에 대한 설명입니다.
애플리케이션 apk 파일의 경우 패키지 관리자가 반환한 애플리케이션 패키지입니다.
| 반환 값 | |
|---|---|
String |
|
getName
public String getName ()
항목의 이름을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getOwner
public String getOwner ()
ls에서 반환된 항목의 소유자 문자열을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getParent
public FileListingService.FileEntry getParent ()
상위 항목을 반환합니다.
| 반환 값 | |
|---|---|
FileListingService.FileEntry |
|
getPathSegments
public String[] getPathSegments ()
경로를 세그먼트 목록으로 반환합니다.
| 반환 값 | |
|---|---|
String[] |
|
getPermissions
public String getPermissions ()
ls에서 반환된 항목의 권한 문자열을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getSize
public String getSize ()
ls에서 반환된 항목의 크기 문자열을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getSizeValue
public int getSizeValue ()
항목의 크기를 반환합니다.
| 반환 값 | |
|---|---|
int |
|
getTime
public String getTime ()
ls에서 반환된 항목의 시간 문자열을 반환합니다.
| 반환 값 | |
|---|---|
String |
|
getType
public int getType ()
항목 유형을 int로 반환합니다. 이는 TYPE_(...) 상수 중 하나와 일치합니다.
| 반환 값 | |
|---|---|
int |
|
isAppFileName
public boolean isAppFileName ()
파일 이름이 애플리케이션 패키지 이름인지 여부를 반환합니다.
| 반환 값 | |
|---|---|
boolean |
|
isApplicationPackage
public boolean isApplicationPackage ()
항목이 유효한 애플리케이션 패키지인지 여부를 반환합니다.
| 반환 값 | |
|---|---|
boolean |
|
isDirectory
public boolean isDirectory ()
항목이 폴더인지 폴더 링크인지 반환합니다.
| 반환 값 | |
|---|---|
boolean |
|
isRoot
public boolean isRoot ()
항목이 루트인지 여부를 반환합니다.
| 반환 값 | |
|---|---|
boolean |
|
setType
public void setType (int type)
새 유형을 설정합니다.
| 매개변수 | |
|---|---|
type |
int |
보호된 메서드
fillPathBuilder
protected void fillPathBuilder (StringBuilder pathBuilder,
boolean escapePath)전체 경로로 pathBuilder를 재귀적으로 채웁니다.
| 매개변수 | |
|---|---|
pathBuilder |
StringBuilder: 경로를 만드는 데 사용되는 StringBuilder입니다. |
escapePath |
boolean: 셸 명령줄에서 사용하기 위해 경로를 이스케이프해야 하는지 여부입니다. |
fillPathSegments
protected void fillPathSegments (list)
전체 경로로 세그먼트 목록을 재귀적으로 채웁니다.
| 매개변수 | |
|---|---|
list |
: 채울 세그먼트 목록입니다. |