|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.ddmlib.FileListingService.FileEntry
public static final class FileListingService.FileEntry
Represents an entry in a directory. This can be a file or a directory.
Method Summary | |
---|---|
static java.lang.String |
escape(java.lang.String entryName)
Returns an escaped version of the entry name. |
protected void |
fillPathBuilder(java.lang.StringBuilder pathBuilder,
boolean escapePath)
Recursively fills the pathBuilder with the full path |
protected void |
fillPathSegments(java.util.ArrayList<java.lang.String> list)
Recursively fills the segment list with the full path. |
FileListingService.FileEntry |
findChild(java.lang.String name)
Returns the child FileListingService.FileEntry matching the name. |
FileListingService.FileEntry[] |
getCachedChildren()
Returns the cached children of the entry. |
java.lang.String |
getDate()
Returns the date string of the entry, as returned by ls . |
java.lang.String |
getFullEscapedPath()
Return the fully escaped path of the entry. |
java.lang.String |
getFullPath()
Return the full path of the entry. |
java.lang.String |
getGroup()
Returns the group owner of the entry, as returned by ls . |
java.lang.String |
getInfo()
Returns the extra info for the entry. |
java.lang.String |
getName()
Returns the name of the entry |
java.lang.String |
getOwner()
Returns the owner string of the entry, as returned by ls . |
FileListingService.FileEntry |
getParent()
Returns the parent entry. |
java.lang.String[] |
getPathSegments()
Returns the path as a list of segments. |
java.lang.String |
getPermissions()
Returns the permission string of the entry, as returned by ls . |
java.lang.String |
getSize()
Returns the size string of the entry, as returned by ls . |
int |
getSizeValue()
Returns the size of the entry. |
java.lang.String |
getTime()
Returns the time string of the entry, as returned by ls . |
int |
getType()
Returns the Entry type as an int, which will match one of the TYPE_(...) constants |
boolean |
isAppFileName()
Returns if the file name is an application package name. |
boolean |
isApplicationPackage()
Returns if the entry is a valid application package. |
boolean |
isDirectory()
Returns if the entry is a folder or a link to a folder. |
boolean |
isRoot()
Returns whether the entry is the root. |
void |
setType(int type)
Sets a new type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getSize()
ls
.
public int getSizeValue()
public java.lang.String getDate()
ls
.
public java.lang.String getTime()
ls
.
public java.lang.String getPermissions()
ls
.
public java.lang.String getOwner()
ls
.
public java.lang.String getGroup()
ls
.
public java.lang.String getInfo()
public java.lang.String getFullPath()
FileListingService.FILE_SEPARATOR
as separator.public java.lang.String getFullEscapedPath()
FileListingService.FILE_SEPARATOR
as separatorpublic java.lang.String[] getPathSegments()
public int getType()
public void setType(int type)
public boolean isDirectory()
public FileListingService.FileEntry getParent()
public FileListingService.FileEntry[] getCachedChildren()
FileListingService.getChildren()
.
public FileListingService.FileEntry findChild(java.lang.String name)
FileListingService.FileEntry
matching the name.
This uses the cached children list.
name
- the name of the child to return.
public boolean isRoot()
public boolean isApplicationPackage()
public boolean isAppFileName()
protected void fillPathBuilder(java.lang.StringBuilder pathBuilder, boolean escapePath)
pathBuilder
- a StringBuilder used to create the path.escapePath
- Whether the path need to be escaped for consumption by
a shell command line.protected void fillPathSegments(java.util.ArrayList<java.lang.String> list)
list
- The list of segments to fill.public static java.lang.String escape(java.lang.String entryName)
entryName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |