<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          JimfsJava 內(nèi)存文件系統(tǒng)

          聯(lián)合創(chuàng)作 · 2023-09-28 17:30

          Jimfs 是一個(gè)用于 Java 7+ 的內(nèi)存中的文件系統(tǒng),實(shí)現(xiàn)了 java.nio.file 抽象文件系統(tǒng) API.

          Maven

          <dependency>
            <groupId>com.google.jimfs</groupId>
            <artifactId>jimfs</artifactId>
            <version>1.0</version>
          </dependency>

          示例代碼:

          import com.google.common.jimfs.Configuration;
          import com.google.common.jimfs.Jimfs;
          ...
          
          // For a simple file system with Unix-style paths and behavior:
          FileSystem fs = Jimfs.newFileSystem(Configuration.unix());
          Path foo = fs.getPath("/foo");
          Files.createDirectory(foo);
          
          Path hello = foo.resolve("hello.txt"); // /foo/hello.txt
          Files.write(hello, ImmutableList.of("hello world"), StandardCharsets.UTF_8);
          瀏覽 23
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  亚洲精品www久久久久久 | 亚洲视频免费观看H | 亚洲AV乱码久久久久 | 久久夫妻视频 | 欧美簧片在线 |