Class JimfsFileSystems
java.lang.Object
com.google.common.jimfs.JimfsFileSystems
Initializes and configures new file system instances.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static FileSystemViewcreateDefaultView(Configuration config, JimfsFileStore fileStore, PathService pathService) Creates the default view of the file system using the given working directory.private static JimfsFileStorecreateFileStore(Configuration config, PathService pathService, FileSystemState state) Creates the file store for the file system.static JimfsFileSystemnewFileSystem(JimfsFileSystemProvider 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
-
JimfsFileSystems
private JimfsFileSystems()
-
-
Method Details
-
removeFileSystemRunnable
-
newFileSystem
public static JimfsFileSystem newFileSystem(JimfsFileSystemProvider 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 JimfsFileStore createFileStore(Configuration config, PathService pathService, FileSystemState state) Creates the file store for the file system. -
createDefaultView
private static FileSystemView createDefaultView(Configuration config, JimfsFileStore fileStore, PathService pathService) throws IOException Creates the default view of the file system using the given working directory.- Throws:
IOException
-