|
JBoss VFS 3.0.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.vfs.TempDir
public final class TempDir
A temporary directory which exists until it is closed, at which time its contents will be removed.
| Method Summary | |
|---|---|
void |
close()
Close this directory. |
File |
createFile(String relativePath,
InputStream sourceData)
Create a file within this temporary directory, prepopulating the file from the given input stream. |
protected void |
finalize()
|
File |
getFile(String relativePath)
Get the File for a relative path. |
File |
getRoot()
Get the File that represents the root of this temporary directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public File getRoot()
throws IOException
File that represents the root of this temporary directory. The returned file is only valid as
long as the tempdir exists.
IOException - if the directory was closed at the time of this invocation
public File getFile(String relativePath)
throws IOException
File for a relative path. The returned file is only valid as long as the tempdir exists.
relativePath - the relative path
IOException - if the directory was closed at the time of this invocation
public File createFile(String relativePath,
InputStream sourceData)
throws IOException
relativePath - the relative path namesourceData - the source input stream to use
IOException - if the directory was closed at the time of this invocation or an error occurs
public void close()
throws IOException
close in interface CloseableIOException - if an I/O error occurs
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
JBoss VFS 3.0.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||