Interface DirectoryHolder
- All Superinterfaces:
AutoCloseable
,Closeable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release any resource currently held by theDirectoryHolder
, including (but not limiting to) the directory itself.get()
void
start()
Allocate internal resources (filesystem directories, ...) as necessary, along with the directory itself.
-
Method Details
-
start
Allocate internal resources (filesystem directories, ...) as necessary, along with the directory itself.After this method has been called,
get()
can be safely called.- Throws:
IOException
- If an error occurs while creating resources.RuntimeException
- If an error occurs while creating resources.
-
close
Release any resource currently held by theDirectoryHolder
, including (but not limiting to) the directory itself.After this method has been called, the result of calling any other method on the same instance is undefined.
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- If an error occurs while releasing resources.RuntimeException
- If an error occurs while releasing resources.
-
get
Directory get()- Returns:
- The directory held by this
DirectoryHolder
.
-