Class FileSystemResourcePack

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FileSystemResourcePack
    extends DelegatingResourcePack
    • Constructor Detail

      • FileSystemResourcePack

        public FileSystemResourcePack​(java.nio.file.FileSystem fileSystem,
                                      java.lang.String name)
    • Method Detail

      • ofPath

        public static FileSystemResourcePack ofPath​(java.nio.file.Path path,
                                                    java.lang.String name)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getFileSystem

        public java.nio.file.FileSystem getFileSystem()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class DelegatingResourcePack
        Throws:
        java.io.IOException