Commit 7f2e48b9 authored by 周亚武's avatar 周亚武

修改合并mp3文件规则

parent bcb815b0
...@@ -109,7 +109,7 @@ public class SpliceMp3Util { ...@@ -109,7 +109,7 @@ public class SpliceMp3Util {
*/ */
public static void saveToFile(InputStream inStream, File file) throws IOException { public static void saveToFile(InputStream inStream, File file) throws IOException {
if (file.exists()) { if (file.exists()) {
throw new IOException("File already exists"); file.delete();
} }
try (OutputStream outStream = new FileOutputStream(file)) { try (OutputStream outStream = new FileOutputStream(file)) {
byte[] buffer = new byte[4096]; byte[] buffer = new byte[4096];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment