public class TemporaryDirectory extends Object implements Closeable
Constructor and Description |
---|
TemporaryDirectory(Path parentDirectory)
Creates a new temporary directory under an existing
parentDirectory . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Path |
getDirectory()
Gets the temporary directory.
|
public TemporaryDirectory(Path parentDirectory) throws IOException
parentDirectory
.parentDirectory
- the directory to create the temporary directory withinIOException
- if an I/O exception occurspublic Path getDirectory()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2018. All rights reserved.