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
BasicFileAttributeViewprivate final ShrinkWrapFileSystemProvider provider
ShrinkWrapFileSystemprivate 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.FileSystemFileSystem.provider()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.nio.file.FileSystemjava.io.IOExceptionFileSystem.close()public boolean isOpen()
isOpen in class java.nio.file.FileSystemFileSystem.isOpen()public boolean isReadOnly()
isReadOnly in class java.nio.file.FileSystemFileSystem.isReadOnly()public java.lang.String getSeparator()
getSeparator in class java.nio.file.FileSystemFileSystem.getSeparator()public java.lang.Iterable<java.nio.file.Path> getRootDirectories()
getRootDirectories in class java.nio.file.FileSystemFileSystem.getRootDirectories()public java.lang.Iterable<java.nio.file.FileStore> getFileStores()
getFileStores in class java.nio.file.FileSystemFileSystem.getFileStores()public java.util.Set<java.lang.String> supportedFileAttributeViews()
supportedFileAttributeViews in class java.nio.file.FileSystemFileSystem.supportedFileAttributeViews()public java.nio.file.Path getPath(java.lang.String first,
java.lang.String... more)
getPath in class java.nio.file.FileSystemFileSystem.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.FileSystempublic java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class java.nio.file.FileSystemFileSystem.getUserPrincipalLookupService()public java.nio.file.WatchService newWatchService()
throws java.io.IOException
newWatchService in class java.nio.file.FileSystemjava.io.IOExceptionFileSystem.newWatchService()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()private void checkClosed()
throws java.nio.file.ClosedFileSystemException
ShrinkWrapFileSystem is closed, and throws a ClosedFileSystemException if sojava.nio.file.ClosedFileSystemExceptionArchive<?> getArchive()