OutputStream outputStream = new TFileOutputStream(trueZipFile, false);
IoUtil.copy(inputStream, outputStream, true, true);
} finally {
synchronizeQuietly(trueZipFile);
}
<BUG>}
public static byte[] getZipEntryBytes(File zipFile, String zipEntryPath) throws IOException {</BUG>
ByteArrayOutputStream zipEntryOutputStream = new ByteArrayOutputStream();
writeZipEntryBytes(zipFile, zipEntryPath, zipEntryOutputStream);
return zipEntryOutputStream.toByteArray();

OutputStream outputStream = new TFileOutputStream(trueZipFile, false);
IoUtil.copy(inputStream, outputStream, true, true);
} finally {
synchronizeQuietly(trueZipFile);
}
}
@Nonnull
public static byte[] getZipEntryBytes(File zipFile, String zipEntryPath) throws IOException {
ByteArrayOutputStream zipEntryOutputStream = new ByteArrayOutputStream();
writeZipEntryBytes(zipFile, zipEntryPath, zipEntryOutputStream);
return zipEntryOutputStream.toByteArray();
