Fix stream copying
This commit is contained in:
@@ -21,7 +21,7 @@ public class CompressZip extends AbstractCompressor {
|
|||||||
out.putNextEntry(ze);
|
out.putNextEntry(ze);
|
||||||
byte[] buf = new byte[8192];
|
byte[] buf = new byte[8192];
|
||||||
int s;
|
int s;
|
||||||
while((s = inputStream.read()) != -1){
|
while((s = inputStream.read(buf)) != -1){
|
||||||
out.write(buf, 0, s);
|
out.write(buf, 0, s);
|
||||||
}
|
}
|
||||||
out.closeEntry();
|
out.closeEntry();
|
||||||
|
|||||||
Reference in New Issue
Block a user