<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ### IO * StandardCharsets:字符集常量類 ### 獲取文件流&&工具類Files ``` InputStream is = Files.newInputStream(Paths.get("")); OutputStream os = Files.newOutputStream(Paths.get("")); byte[] bytes = Files.readAllBytes(Paths.get("")); //讀取所有字節 Files.readAllLines(Paths.get("")); Files.lines(Paths.get("")); // 追加文件 Files.write(Paths.get(""), "".getBytes(), StandardOpenOption.APPEND); Files.write(Paths.get(""), Arrays.asList(""), StandardCharsets.UTF_8, StandardOpenOption.APPEND); // 隨機讀寫文件 RandomAccessFile file = new RandomAccessFile(Paths.get("").toFile(), "rw"); // 內存映射文件 FileChannel channel = FileChannel.open(Paths.get(""), StandardOpenOption.READ, StandardOpenOption.WRITE); ByteBuffer buffer = channel.map(MapMode.READ_WRITE, 0, channel.size()); buffer.put("hello".getBytes()); //文件鎖 channel.lock(); channel.tryLock(); // 刪除文件 Files.delete(Paths.get("")); // 如果指定的文件或目錄不存在則拋出異常 Files.deleteIfExists(Paths.get("")); ``` #### StandardCopyOption ![](../assets/20171208230301.png) #### StandardOpenOption ![](../assets/20171208230448.png)![](../assets/20171208230521.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看