public class ShrinkWrapFileSystem
extends java.nio.file.FileSystem
Modifier and Type | Field and Description |
---|---|
private Archive<?> |
archive
Underlying
Archive |
(package private) static java.lang.String |
FILE_ATTR_VIEW_BASIC
Contracted name of the
BasicFileAttributeView |
private java.util.List<java.nio.file.FileStore> |
fileStores |
private boolean |
open
Whether or not this FS is open; volatile as we don't need compound operations and thus don't need full sync
|
private ShrinkWrapFileSystemProvider |
provider
Provider which created this
ShrinkWrapFileSystem |
Constructor and Description |
---|
ShrinkWrapFileSystem(ShrinkWrapFileSystemProvider provider,
Archive<?> archive) |
Modifier and Type | Method and Description |
---|---|
private void |
checkClosed()
Checks if the
ShrinkWrapFileSystem is closed, and throws a ClosedFileSystemException if so |
void |
close() |
(package private) Archive<?> |
getArchive()
Obtains the underlying archive
|
java.lang.Iterable<java.nio.file.FileStore> |
getFileStores() |
java.nio.file.Path |
getPath(java.lang.String first,
java.lang.String... more) |
java.nio.file.PathMatcher |
getPathMatcher(java.lang.String syntaxAndPattern) |
java.lang.Iterable<java.nio.file.Path> |
getRootDirectories() |
java.lang.String |
getSeparator() |
java.nio.file.attribute.UserPrincipalLookupService |
getUserPrincipalLookupService() |
boolean |
isOpen() |
boolean |
isReadOnly() |
private java.lang.String |
merge(java.lang.String first,
java.lang.String[] more)
Merges the path context with a varargs String sub-contexts, returning the result
|
java.nio.file.WatchService |
newWatchService() |
java.nio.file.spi.FileSystemProvider |
provider() |
java.util.Set<java.lang.String> |
supportedFileAttributeViews() |
java.lang.String |
toString() |
static final java.lang.String FILE_ATTR_VIEW_BASIC
BasicFileAttributeView
private final ShrinkWrapFileSystemProvider provider
ShrinkWrapFileSystem
private final java.util.List<java.nio.file.FileStore> fileStores
private volatile boolean open
public ShrinkWrapFileSystem(ShrinkWrapFileSystemProvider provider, Archive<?> archive)
public java.nio.file.spi.FileSystemProvider provider()
provider
in class java.nio.file.FileSystem
FileSystem.provider()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.nio.file.FileSystem
java.io.IOException
FileSystem.close()
public boolean isOpen()
isOpen
in class java.nio.file.FileSystem
FileSystem.isOpen()
public boolean isReadOnly()
isReadOnly
in class java.nio.file.FileSystem
FileSystem.isReadOnly()
public java.lang.String getSeparator()
getSeparator
in class java.nio.file.FileSystem
FileSystem.getSeparator()
public java.lang.Iterable<java.nio.file.Path> getRootDirectories()
getRootDirectories
in class java.nio.file.FileSystem
FileSystem.getRootDirectories()
public java.lang.Iterable<java.nio.file.FileStore> getFileStores()
getFileStores
in class java.nio.file.FileSystem
FileSystem.getFileStores()
public java.util.Set<java.lang.String> supportedFileAttributeViews()
supportedFileAttributeViews
in class java.nio.file.FileSystem
FileSystem.supportedFileAttributeViews()
public java.nio.file.Path getPath(java.lang.String first, java.lang.String... more)
getPath
in class java.nio.file.FileSystem
FileSystem.getPath(java.lang.String, java.lang.String[])
private java.lang.String merge(java.lang.String first, java.lang.String[] more)
first
- more
- public java.nio.file.PathMatcher getPathMatcher(java.lang.String syntaxAndPattern)
getPathMatcher
in class java.nio.file.FileSystem
public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService
in class java.nio.file.FileSystem
FileSystem.getUserPrincipalLookupService()
public java.nio.file.WatchService newWatchService() throws java.io.IOException
newWatchService
in class java.nio.file.FileSystem
java.io.IOException
FileSystem.newWatchService()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
private void checkClosed() throws java.nio.file.ClosedFileSystemException
ShrinkWrapFileSystem
is closed, and throws a ClosedFileSystemException
if sojava.nio.file.ClosedFileSystemException
Archive<?> getArchive()