final int BUFFER = 2048;
GZIPOutputStream dest = null
ZipEntry zipEntry;
while ((zipEntry = zipStream.getNextEntry()) != null) {
int count;
byte data[] = new byte[BUFFER];
String reportName = zipEntry.getName();
File report = File.createTempFile("rpt", "gz");
dest = new GZIPOutputStream(
while ((count = zipStream.read(data, 0, BUFFER)) != -1) {
dest.write(data, 0, count);
}
dest.flush();
dest.close();
} finally {
if(zipStream != null) {
zipStream.close();
No comments:
Post a Comment