Package com.google.common.jimfs
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 FileSystemView
createDefaultView
(Configuration config, JimfsFileStore fileStore, PathService pathService) Creates the default view of the file system using the given working directory.private static JimfsFileStore
createFileStore
(Configuration config, PathService pathService, FileSystemState state) Creates the file store for the file system.static JimfsFileSystem
newFileSystem
(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 Runnable
Returns aRunnable
that will remove the file system with the givenURI
from the system provider's cache when called.
-
Field Details
-
DO_NOTHING
-
-
Constructor Details
-
JimfsFileSystems
private JimfsFileSystems()
-
-
Method Details
-
removeFileSystemRunnable
Returns aRunnable
that will remove the file system with the givenURI
from the system provider's cache when called. -
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
-