Fix stream copying
This commit is contained in:
parent
cf41ff8c87
commit
8eb6c6b0ca
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user