Package com.android.io
Class FolderWrapper
- java.lang.Object
-
- java.io.File
-
- com.android.io.FolderWrapper
-
- All Implemented Interfaces:
IAbstractFolder,IAbstractResource,java.io.Serializable,java.lang.Comparable<java.io.File>
public class FolderWrapper extends java.io.File implements IAbstractFolder
An implementation ofIAbstractFolderextendingFile.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.android.io.IAbstractFolder
IAbstractFolder.FilenameFilter
-
-
Constructor Summary
Constructors Constructor Description FolderWrapper(java.lang.String pathname)Creates a new File instance by converting the given pathname string into an abstract pathname.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()Returns whether the resource actually exists.IAbstractFilegetFile(java.lang.String name)Returns anIAbstractFilerepresenting a child of the current folder with the given name.java.lang.StringgetOsLocation()Returns the OS path of the folder location (may be absolute).-
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
-
-
-
Method Detail
-
getFile
public IAbstractFile getFile(java.lang.String name)
Description copied from interface:IAbstractFolderReturns anIAbstractFilerepresenting a child of the current folder with the given name. The file may not actually exist.- Specified by:
getFilein interfaceIAbstractFolder- Parameters:
name- the name of the file.
-
getOsLocation
public java.lang.String getOsLocation()
Description copied from interface:IAbstractResourceReturns the OS path of the folder location (may be absolute).- Specified by:
getOsLocationin interfaceIAbstractResource
-
exists
public boolean exists()
Description copied from interface:IAbstractResourceReturns whether the resource actually exists.- Specified by:
existsin interfaceIAbstractResource- Overrides:
existsin classjava.io.File
-
-