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
-
Constructor Summary
Constructors Constructor Description ConfigurableFileSystemProviderWrapper(FileSystemProvider delegate, Set<AccessMode> allowedAccessModes) -
Method Summary
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
-
Constructor Details
-
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 Details
-
checkAccess
- Overrides:
checkAccessin classDelegatingFileSystemProvider- Throws:
IOException
-