private static class TempDirectory.CloseablePath extends java.lang.Object implements ExtensionContext.Store.CloseableResource
| Modifier and Type | Field and Description |
|---|---|
private java.nio.file.Path |
dir |
| Constructor and Description |
|---|
CloseablePath(java.nio.file.Path dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close underlying resources.
|
private java.io.IOException |
createIOExceptionWithAttachedFailures(java.util.SortedMap<java.nio.file.Path,java.io.IOException> failures) |
private java.util.SortedMap<java.nio.file.Path,java.io.IOException> |
deleteAllFilesAndDirectories() |
(package private) java.nio.file.Path |
get() |
private java.nio.file.Path |
relativizeSafely(java.nio.file.Path path) |
private void |
tryToDeleteOnExit(java.nio.file.Path path) |
java.nio.file.Path get()
public void close()
throws java.io.IOException
ExtensionContext.Store.CloseableResourceclose in interface ExtensionContext.Store.CloseableResourcejava.io.IOExceptionprivate java.util.SortedMap<java.nio.file.Path,java.io.IOException> deleteAllFilesAndDirectories()
throws java.io.IOException
java.io.IOExceptionprivate java.io.IOException createIOExceptionWithAttachedFailures(java.util.SortedMap<java.nio.file.Path,java.io.IOException> failures)
private void tryToDeleteOnExit(java.nio.file.Path path)
private java.nio.file.Path relativizeSafely(java.nio.file.Path path)