From a6c5459d8dd1778f56e76b6d3a4c0dbec039e9f7 Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Thu, 7 May 2020 00:53:21 +0800 Subject: [PATCH] replace with list replace with list --- app/src/main/java/com/frank/ffmpeg/util/FileUtil.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java index e5d4bb4..39b7654 100644 --- a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java +++ b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.java @@ -7,6 +7,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; +import java.util.List; /** * file tool @@ -160,8 +161,8 @@ public class FileUtil { return filePath.substring(filePath.lastIndexOf("/") + 1); } - public static String createListFile(String listPath, String[] fileArray) { - if ((TextUtils.isEmpty(listPath) || fileArray == null || fileArray.length == 0)) { + public static String createListFile(String listPath, List fileList) { + if ((TextUtils.isEmpty(listPath) || fileList == null || fileList.size() == 0)) { return null; } FileOutputStream outputStream = null; @@ -179,7 +180,7 @@ public class FileUtil { } outputStream = new FileOutputStream(listFile); StringBuilder fileBuilder = new StringBuilder(); - for (String file : fileArray) { + for (String file : fileList) { fileBuilder .append("file") .append(" ")