Package io.quarkus.fs.util
Class FileSystemHelper
java.lang.Object
io.quarkus.fs.util.FileSystemHelper
public class FileSystemHelper extends Object
-
Constructor Summary
Constructors Constructor Description FileSystemHelper() -
Method Summary
Modifier and Type Method Description static PathignoreFileWriteability(Path path)Wraps the given path with aPathWrapper, preventing file system writeability checks.static FileSystemopenFS(URI uri, Map<String,?> env, ClassLoader classLoader)Same as callingFileSystems.newFileSystem(URI, Map, ClassLoader)static FileSystemopenFS(Path path, Map<String,?> env, ClassLoader classLoader)Same as callingFileSystems.newFileSystem(Path, ClassLoader).
-
Constructor Details
-
FileSystemHelper
public FileSystemHelper()
-
-
Method Details
-
openFS
public static FileSystem openFS(Path path, Map<String,?> env, ClassLoader classLoader) throws IOExceptionSame as callingFileSystems.newFileSystem(Path, ClassLoader). The env parameter is ignored when running on java versions less than 13.- Parameters:
path-env- only used on java 13classLoader-- Returns:
- Throws:
IOException
-
openFS
public static FileSystem openFS(URI uri, Map<String,?> env, ClassLoader classLoader) throws IOExceptionSame as callingFileSystems.newFileSystem(URI, Map, ClassLoader)- Parameters:
uri-env-classLoader-- Returns:
- Throws:
IOException
-
ignoreFileWriteability
Wraps the given path with aPathWrapper, preventing file system writeability checks. Only has an effect on jdk13 and up- Parameters:
path-- Returns:
-