Class ZeroFsFileSystems
java.lang.Object
io.roastedroot.zerofs.ZeroFsFileSystems
Initializes and configures new file system instances.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static FileSystemViewcreateDefaultView(Configuration config, ZeroFsFileStore fileStore, PathService pathService) Creates the default view of the file system using the given working directory.private static ZeroFsFileStorecreateFileStore(Configuration config, PathService pathService, FileSystemState state) Creates the file store for the file system.static ZeroFsFileSystemnewFileSystem(ZeroFsFileSystemProvider provider, URI uri, Configuration config) Initialize and configure a new file system with the given provider and URI, using the given configuration.private static RunnableReturns aRunnablethat will remove the file system with the givenURIfrom the system provider's cache when called.
-
Field Details
-
DO_NOTHING
-
-
Constructor Details
-
ZeroFsFileSystems
private ZeroFsFileSystems()
-
-
Method Details
-
removeFileSystemRunnable
-
newFileSystem
public static ZeroFsFileSystem newFileSystem(ZeroFsFileSystemProvider provider, URI uri, Configuration config) throws IOException Initialize and configure a new file system with the given provider and URI, using the given configuration.- Throws:
IOException
-
createFileStore
private static ZeroFsFileStore createFileStore(Configuration config, PathService pathService, FileSystemState state) Creates the file store for the file system. -
createDefaultView
private static FileSystemView createDefaultView(Configuration config, ZeroFsFileStore fileStore, PathService pathService) throws IOException Creates the default view of the file system using the given working directory.- Throws:
IOException
-