Package io.quarkus.fs.util.sysfs
Class ConfigurableFileSystemProviderWrapper
- java.lang.Object
-
- java.nio.file.spi.FileSystemProvider
-
- io.quarkus.fs.util.base.DelegatingFileSystemProvider
-
- io.quarkus.fs.util.sysfs.ConfigurableFileSystemProviderWrapper
-
public class ConfigurableFileSystemProviderWrapper extends DelegatingFileSystemProvider
Configurable File System Provider, which delegates all tasks to a delegate FSP, except for access mode checks.
-
-
Field Summary
-
Fields inherited from class io.quarkus.fs.util.base.DelegatingFileSystemProvider
delegate
-
-
Constructor Summary
Constructors Constructor Description ConfigurableFileSystemProviderWrapper(FileSystemProvider delegate, Set<AccessMode> allowedAccessModes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAccess(Path path, AccessMode... modes)-
Methods inherited from class io.quarkus.fs.util.base.DelegatingFileSystemProvider
copy, createDirectory, createLink, createSymbolicLink, delete, deleteIfExists, equals, getFileAttributeView, getFileStore, getFileSystem, getPath, getScheme, hashCode, isHidden, isSameFile, move, newAsynchronousFileChannel, newByteChannel, newDirectoryStream, newFileChannel, newFileSystem, newFileSystem, newInputStream, newOutputStream, readAttributes, readAttributes, readSymbolicLink, setAttribute
-
Methods inherited from class java.nio.file.spi.FileSystemProvider
installedProviders
-
-
-
-
Constructor Detail
-
ConfigurableFileSystemProviderWrapper
public ConfigurableFileSystemProviderWrapper(FileSystemProvider delegate, Set<AccessMode> allowedAccessModes)
- Parameters:
delegate- the FileSystemProvider to delegate to. May not be nullallowedAccessModes- The access modes which should be allowed by default. They given path won't be checked for these. May be null.
-
-
Method Detail
-
checkAccess
public void checkAccess(Path path, AccessMode... modes) throws IOException
- Overrides:
checkAccessin classDelegatingFileSystemProvider- Throws:
IOException
-
-