public class NativeImageResourceFileSystem extends FileSystem
Some parts of code from this class are copied from jdk.nio.zipfs.ZipFileSystem with small tweaks. The main reason why we cannot reuse this class (without any code copying) is that we cannot extend jdk.nio.zipfs.ZipPath which is the central class in the Zip file system.
Constructor and Description |
---|
NativeImageResourceFileSystem(NativeImageResourceFileSystemProvider provider,
Path resourcePath,
Map<String,?> env) |
Modifier and Type | Method and 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() |
public NativeImageResourceFileSystem(NativeImageResourceFileSystemProvider provider, Path resourcePath, Map<String,?> env)
public FileSystemProvider provider()
provider
in class FileSystem
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FileSystem
IOException
public boolean isOpen()
isOpen
in class FileSystem
public boolean isReadOnly()
isReadOnly
in class FileSystem
public String getSeparator()
getSeparator
in class FileSystem
public Iterable<Path> getRootDirectories()
getRootDirectories
in class FileSystem
public Iterable<FileStore> getFileStores()
getFileStores
in class FileSystem
public Set<String> supportedFileAttributeViews()
supportedFileAttributeViews
in class FileSystem
public Path getPath(String first, String... more)
getPath
in class FileSystem
public PathMatcher getPathMatcher(String syntaxAndPattern)
getPathMatcher
in class FileSystem
public UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService
in class FileSystem
public WatchService newWatchService()
newWatchService
in class FileSystem