com.android.io
Interface IAbstractResource

All Known Subinterfaces:
IAbstractFile, IAbstractFolder
All Known Implementing Classes:
FileWrapper, FolderWrapper

public interface IAbstractResource

Base 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
 boolean delete()
          Deletes the resource.
 boolean exists()
          Returns whether the resource actually exists.
 java.lang.String getName()
          Returns the name of the resource.
 java.lang.String getOsLocation()
          Returns the OS path of the folder location.
 IAbstractFolder getParentFolder()
          Returns the parent folder or null if there is no parent.
 

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.


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.