File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/main/java/dev/zarr/zarrjava/store Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1111import java .util .stream .Stream ;
1212
1313import org .apache .commons .compress .archivers .ArchiveEntry ;
14- import org .apache .commons .compress .archivers .zip .ZipArchiveEntry ;
15- import org .apache .commons .compress .archivers .zip .ZipArchiveInputStream ;
16- import org .apache .commons .compress .archivers .zip .ZipArchiveOutputStream ;
17- import org .apache .commons .compress .archivers .zip .Zip64Mode ;
14+ import org .apache .commons .compress .archivers .zip .*;
1815
1916import java .util .zip .CRC32 ;
2017import java .util .zip .ZipEntry ; // for STORED constant
@@ -32,14 +29,11 @@ private void writeBuffer() throws IOException{
3229 // create zip file bytes from buffer store and write to underlying store
3330 ByteArrayOutputStream baos = new ByteArrayOutputStream ();
3431 try (ZipArchiveOutputStream zos = new ZipArchiveOutputStream (baos )) {
35- // always use zip64
36- zos .setUseZip64 (Zip64Mode .Always );
37- // set archive comment if provided
32+ zos .setUseZip64 (Zip64Mode .AsNeeded );
3833 if (archiveComment != null ) {
3934 zos .setComment (archiveComment );
4035 }
4136
42- // iterate all entries provided by bufferStore.list()
4337 bufferStore .list ().forEach (keys -> {
4438 try {
4539 if (keys == null || keys .length == 0 ) {
You can’t perform that action at this time.
0 commit comments