Эх сурвалжийг харах

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

Signed-off-by: luoshi <luoshi@qmth.com.cn>
luoshi 3 жил өмнө
parent
commit
60c63458b5

+ 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");