class BasicMountHandle extends java.lang.Object implements MountHandle
| Modifier and Type | Field and Description |
|---|---|
private java.io.Closeable[] |
closeables |
private FileSystem |
fileSystem |
private java.io.Closeable |
mountHandle |
| Constructor and Description |
|---|
BasicMountHandle(FileSystem fileSystem,
java.io.Closeable mountHandle,
java.io.Closeable... additionalCloseables)
Create new DefaultMountHandle with a FileSystem and an array of closeable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.File |
getMountSource()
Get the source file used for the mount.
|
private final FileSystem fileSystem
private final java.io.Closeable mountHandle
private final java.io.Closeable[] closeables
BasicMountHandle(FileSystem fileSystem, java.io.Closeable mountHandle, java.io.Closeable... additionalCloseables)
fileSystem - to use to retrieve the mount sourcemountHandle - the handle to close the actual mountadditionalCloseables - addition Closeable to execute on closepublic java.io.File getMountSource()
MountHandlegetMountSource in interface MountHandlepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException