Fix stream copying

This commit is contained in:
Mark Vainomaa 2017-03-26 17:34:15 +03:00
parent cf41ff8c87
commit 8eb6c6b0ca

View File

@ -21,7 +21,7 @@ public class CompressZip extends AbstractCompressor {
out.putNextEntry(ze);
byte[] buf = new byte[8192];
int s;
while((s = inputStream.read()) != -1){
while((s = inputStream.read(buf)) != -1){
out.write(buf, 0, s);
}
out.closeEntry();