Class SpringZipUtils
java.lang.Object
org.springframework.integration.zip.transformer.SpringZipUtils
Once the Spring Integration Zip support matures, we need to contribute the
methods in this utility class back to the ZT Zip project.
- Since:
- 6.1
- Author:
- Gunnar Hillert
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
copy
(InputStream in) static void
copy
(InputStream in, File file) static byte[]
pack
(Collection<org.zeroturnaround.zip.ZipEntrySource> entries, int compressionLevel) static void
pack
(Collection<org.zeroturnaround.zip.ZipEntrySource> entries, File zip, int compressionLevel)
-
Constructor Details
-
SpringZipUtils
public SpringZipUtils()
-
-
Method Details
-
pack
public static byte[] pack(Collection<org.zeroturnaround.zip.ZipEntrySource> entries, int compressionLevel) -
pack
public static void pack(Collection<org.zeroturnaround.zip.ZipEntrySource> entries, File zip, int compressionLevel) -
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-