|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.File
|
+--ch.elca.dependency.util.MyFile
Class MyFile used for a temporary directory which
needs to be deleted on exit. The delete() method works
recursively in case an instance of MyFile is a directory.
| Field Summary |
| Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
MyFile(java.io.File parent,
java.lang.String child)
Creates a new MyFile instance. |
|
MyFile(java.lang.String pathname)
Creates a new MyFile instance. |
|
| Method Summary | |
boolean |
createNewFile()
Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. |
boolean |
delete()
Deletes the file or directory denoted by this abstract pathname. |
| Methods inherited from class java.io.File |
canRead, canWrite, compareTo, compareTo, createTempFile, createTempFile, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MyFile(java.lang.String pathname)
MyFile instance.
pathname - a String value
public MyFile(java.io.File parent,
java.lang.String child)
MyFile instance.
parent - a File valuechild - a String value| Method Detail |
public boolean delete()
delete in class java.io.Fileboolean value
public boolean createNewFile()
throws java.io.IOException
createNewFile in class java.io.Fileboolean value
java.io.IOException - if an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||