Class JimfsFileSystems


  • final class JimfsFileSystems
    extends java.lang.Object
    Initializes and configures new file system instances.
    • Field Detail

      • DO_NOTHING

        private static final java.lang.Runnable DO_NOTHING
    • Constructor Detail

      • JimfsFileSystems

        private JimfsFileSystems()
    • Method Detail

      • removeFileSystemRunnable

        private static java.lang.Runnable removeFileSystemRunnable​(java.net.URI uri)
        Returns a Runnable that will remove the file system with the given URI from the system provider's cache when called.
      • newFileSystem

        public static JimfsFileSystem newFileSystem​(JimfsFileSystemProvider provider,
                                                    java.net.URI uri,
                                                    Configuration config)
                                             throws java.io.IOException
        Initialize and configure a new file system with the given provider and URI, using the given configuration.
        Throws:
        java.io.IOException
      • createDefaultView

        private static FileSystemView createDefaultView​(Configuration config,
                                                        JimfsFileStore fileStore,
                                                        PathService pathService)
                                                 throws java.io.IOException
        Creates the default view of the file system using the given working directory.
        Throws:
        java.io.IOException