public class TemporaryDirectoryAllocator extends Object
| Constructor and Description |
|---|
TemporaryDirectoryAllocator() |
TemporaryDirectoryAllocator(File base)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
File |
allocate()
Allocates a new empty temporary directory and returns it.
|
void |
dispose()
Deletes all allocated temporary directories.
|
void |
disposeAsync()
Deletes all allocated temporary directories asynchronously.
|
@Deprecated public TemporaryDirectoryAllocator(File base)
public TemporaryDirectoryAllocator()
public File allocate() throws IOException
TemporaryDirectoryAllocator gets disposed.
When this method returns, the directory already exists.IOExceptionpublic void dispose()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void disposeAsync()
Copyright © 2004–2019. All rights reserved.