Class ShrinkWrapFileSystem
- java.lang.Object
-
- java.nio.file.FileSystem
-
- org.jboss.shrinkwrap.impl.nio.file.ShrinkWrapFileSystem
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ShrinkWrapFileSystem extends FileSystem
ShrinkWrap implementation adapting aArchiveto aFileSystem; Thread-safe, though access to the underlyingArchiveis *not*.- Author:
- Andrew Lee Rubinger
-
-
Constructor Summary
Constructors Constructor Description ShrinkWrapFileSystem(ShrinkWrapFileSystemProvider provider, Archive<?> archive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Iterable<FileStore>getFileStores()PathgetPath(String first, String... more)PathMatchergetPathMatcher(String syntaxAndPattern)Iterable<Path>getRootDirectories()StringgetSeparator()UserPrincipalLookupServicegetUserPrincipalLookupService()booleanisOpen()booleanisReadOnly()WatchServicenewWatchService()FileSystemProviderprovider()Set<String>supportedFileAttributeViews()StringtoString()
-
-
-
Constructor Detail
-
ShrinkWrapFileSystem
public ShrinkWrapFileSystem(ShrinkWrapFileSystemProvider provider, Archive<?> archive)
-
-
Method Detail
-
provider
public FileSystemProvider provider()
- Specified by:
providerin classFileSystem- See Also:
FileSystem.provider()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem- Throws:
IOException- See Also:
FileSystem.close()
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin classFileSystem- See Also:
FileSystem.isOpen()
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin classFileSystem- See Also:
FileSystem.isReadOnly()
-
getSeparator
public String getSeparator()
- Specified by:
getSeparatorin classFileSystem- See Also:
FileSystem.getSeparator()
-
getRootDirectories
public Iterable<Path> getRootDirectories()
- Specified by:
getRootDirectoriesin classFileSystem- See Also:
FileSystem.getRootDirectories()
-
getFileStores
public Iterable<FileStore> getFileStores()
- Specified by:
getFileStoresin classFileSystem- See Also:
FileSystem.getFileStores()
-
supportedFileAttributeViews
public Set<String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViewsin classFileSystem- See Also:
FileSystem.supportedFileAttributeViews()
-
getPath
public Path getPath(String first, String... more)
- Specified by:
getPathin classFileSystem- See Also:
FileSystem.getPath(java.lang.String, java.lang.String[])
-
getPathMatcher
public PathMatcher getPathMatcher(String syntaxAndPattern)
- Specified by:
getPathMatcherin classFileSystem
-
getUserPrincipalLookupService
public UserPrincipalLookupService getUserPrincipalLookupService()
- Specified by:
getUserPrincipalLookupServicein classFileSystem- See Also:
FileSystem.getUserPrincipalLookupService()
-
newWatchService
public WatchService newWatchService() throws IOException
- Specified by:
newWatchServicein classFileSystem- Throws:
IOException- See Also:
FileSystem.newWatchService()
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-