|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
com.pnp.xfeature.documenttree.CachedFile
public class CachedFile
Class that extends a normal java.io File in order to cache the children files and the parent file.
| Field Summary |
|---|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
CachedFile(java.lang.String path)
|
|
| Method Summary | |
|---|---|
java.io.File |
getParentFile()
Caches the parent file when first run. |
boolean |
isDirectory()
Caches the directory information when first run. |
java.io.File[] |
listFiles()
Caches the children files, when first run. |
void |
setParent(CachedFile parent)
Sets the parent file. |
| Methods inherited from class java.io.File |
|---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CachedFile(java.lang.String path)
| Method Detail |
|---|
public java.io.File[] listFiles()
listFiles in class java.io.FileFile.listFiles()public java.io.File getParentFile()
getParentFile in class java.io.FileFile.getParentFile()public boolean isDirectory()
isDirectory in class java.io.FileFile.isDirectory()public void setParent(CachedFile parent)
parent - parent file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||