<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 組件源碼 ``` /** * <b>方法描述:</b> 文件合并 <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2018-05-08 17:22:21 <br/> * * @param fileList * 入參|待合并的文件名| * {@link com.ylink.ide.trade.runtime.context.JavaList} * @param outFile * 入參|合并輸出的文件名|{@link java.lang.String} * @return -1 異常<br/> * 1 成功<br/> */ @Component(label = "文件合并", style = "判斷型", type = "同步組件", version = "1.0.0", deprecated = false, author = "admin", date = "2018-05-08 05:22:21") @InParams(param = { @Param(name = "fileList", comment = "待合并的文件名", type = com.ylink.ide.trade.runtime.context.JavaList.class), @Param(name = "outFile", comment = "合并輸出的文件名", type = java.lang.String.class) }) @Returns(returns = { @Return(id = "-1", desp = "異常"), @Return(id = "1", desp = "成功") }) public static ResultBase P_mergeFiles(JavaList fileList, String outFile) { FileChannel outChannel = null; if(StringUtil.isBlank(outFile)) return ResultBase.newFailureResult("TPTF0050", "輸出文件名不能為空"); if(fileList==null||fileList.isEmpty()) return ResultBase.newFailureResult("TPTF0050", "待合并文件列表能為空"); try { outChannel = (new FileOutputStream(outFile)).getChannel(); for (Object iterm : fileList) { String f = (String) iterm; FileChannel fc = (new FileInputStream(f)).getChannel(); ByteBuffer bb = ByteBuffer.allocate(8192); while (fc.read(bb) != -1) { bb.flip(); outChannel.write(bb); bb.clear(); } fc.close(); } return ResultBase.newSuccessResult(); } catch (Exception e) { AppLog.error(e); return ResultBase.newExceptionResult("TPTF0035", "合并文件失敗," + AppLog.errorMsg(e)); } finally { try { if (outChannel != null) { outChannel.close(); } } catch (IOException arg10) { AppLog.error(arg10); } } } ``` # 交易中組件使用方式 ![](https://img.kancloud.cn/c4/08/c4083e2223e840133b44ac7f8e4d9bcc_1868x893.png) # 參數說明及示例 ## 入口參數 待合并的文件名:需要合并的文件絕對路徑,示例: `["D:\\work\\CQYY\\workspace\\abc.txt", "D:\\work\\CQYY\\workspace\\123.txt"]` 合并輸出的文件名:合并后的文件絕對路徑,示例: `"D:\\work\\CQYY\\workspace\\xxx.txt"`
                  <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>

                              哎呀哎呀视频在线观看