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 aArchive
to aFileSystem
; Thread-safe, though access to the underlyingArchive
is *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 void
close()
Iterable<FileStore>
getFileStores()
Path
getPath(String first, String... more)
PathMatcher
getPathMatcher(String syntaxAndPattern)
Iterable<Path>
getRootDirectories()
String
getSeparator()
UserPrincipalLookupService
getUserPrincipalLookupService()
boolean
isOpen()
boolean
isReadOnly()
WatchService
newWatchService()
FileSystemProvider
provider()
Set<String>
supportedFileAttributeViews()
String
toString()
-
-
-
Constructor Detail
-
ShrinkWrapFileSystem
public ShrinkWrapFileSystem(ShrinkWrapFileSystemProvider provider, Archive<?> archive)
-
-
Method Detail
-
provider
public FileSystemProvider provider()
- Specified by:
provider
in classFileSystem
- See Also:
FileSystem.provider()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classFileSystem
- Throws:
IOException
- See Also:
FileSystem.close()
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in classFileSystem
- See Also:
FileSystem.isOpen()
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classFileSystem
- See Also:
FileSystem.isReadOnly()
-
getSeparator
public String getSeparator()
- Specified by:
getSeparator
in classFileSystem
- See Also:
FileSystem.getSeparator()
-
getRootDirectories
public Iterable<Path> getRootDirectories()
- Specified by:
getRootDirectories
in classFileSystem
- See Also:
FileSystem.getRootDirectories()
-
getFileStores
public Iterable<FileStore> getFileStores()
- Specified by:
getFileStores
in classFileSystem
- See Also:
FileSystem.getFileStores()
-
supportedFileAttributeViews
public Set<String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViews
in classFileSystem
- See Also:
FileSystem.supportedFileAttributeViews()
-
getPath
public Path getPath(String first, String... more)
- Specified by:
getPath
in classFileSystem
- See Also:
FileSystem.getPath(java.lang.String, java.lang.String[])
-
getPathMatcher
public PathMatcher getPathMatcher(String syntaxAndPattern)
- Specified by:
getPathMatcher
in classFileSystem
-
getUserPrincipalLookupService
public UserPrincipalLookupService getUserPrincipalLookupService()
- Specified by:
getUserPrincipalLookupService
in classFileSystem
- See Also:
FileSystem.getUserPrincipalLookupService()
-
newWatchService
public WatchService newWatchService() throws IOException
- Specified by:
newWatchService
in classFileSystem
- Throws:
IOException
- See Also:
FileSystem.newWatchService()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-