|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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
valuepublic MyFile(java.io.File parent, java.lang.String child)
MyFile
instance.
parent
- a File
valuechild
- a String
valueMethod Detail |
public boolean delete()
delete
in class java.io.File
boolean
valuepublic boolean createNewFile() throws java.io.IOException
createNewFile
in class java.io.File
boolean
value
java.io.IOException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |