瀏覽代碼

修改ZipWriter接口,删除暂时无用的直接输出到byte[]的创建方法

Signed-off-by: luoshi <luoshi@qmth.com.cn>
luoshi 3 年之前
父節點
當前提交
60c63458b5
共有 1 個文件被更改,包括 0 次插入9 次删除
  1. 0 9
      tools-common/src/main/java/com/qmth/boot/tools/io/ZipWriter.java

+ 0 - 9
tools-common/src/main/java/com/qmth/boot/tools/io/ZipWriter.java

@@ -33,15 +33,6 @@ public class ZipWriter {
         return create(new FileOutputStream(file));
     }
 
-    /**
-     * 创建输出到byte[]的ZIP内容
-     *
-     * @return
-     */
-    public static ZipWriter create() {
-        return create(new ByteArrayOutputStream());
-    }
-
     private ZipWriter(OutputStream outputStream) {
         if (outputStream == null) {
             throw new IllegalArgumentException("OutputStream should not be null");