Package com.android.io
Interface IAbstractResource
-
- All Known Subinterfaces:
IAbstractFile,IAbstractFolder
- All Known Implementing Classes:
FileWrapper,FolderWrapper
public interface IAbstractResourceBase representation of a file system resource.This somewhat limited interface is designed to let classes use file-system resources, without having the manually handle either the standard Java file or the Eclipse file API..
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete()Deletes the resource.booleanexists()Returns whether the resource actually exists.java.lang.StringgetName()Returns the name of the resource.java.lang.StringgetOsLocation()Returns the OS path of the folder location (may be absolute).IAbstractFoldergetParentFolder()Returns the parent folder or null if there is no parent.java.lang.StringgetPath()Returns the path of the resource.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the resource.
-
getOsLocation
java.lang.String getOsLocation()
Returns the OS path of the folder location (may be absolute).
-
getPath
java.lang.String getPath()
Returns the path of the resource.
-
exists
boolean exists()
Returns whether the resource actually exists.
-
getParentFolder
IAbstractFolder getParentFolder()
Returns the parent folder or null if there is no parent.
-
delete
boolean delete()
Deletes the resource.
-
-