aspose file tools*
The moose likes I/O and Streams and the fly likes GZIP file append  writing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "GZIP file append  writing" Watch "GZIP file append  writing" New topic
Author

GZIP file append writing

Deva Devan
Ranch Hand

Joined: Sep 22, 2010
Posts: 39
Hi,

I have 10 text files , i am going to read all files one by one and compressing using gzip compression.
read first file and comperss then waiting 10 mins. and reading next text file compress with the previous gzip file from the end of the gzip file.
this operation happen end of text files and finally i want one .gzip file.
how can i append the gzip file?

Please let me know. (its urgent)

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
That's not possible. You need to have all files available when creating a compressed file; you can't add files later without de- and re-compressing the other ones.
Deva Devan
Ranch Hand

Joined: Sep 22, 2010
Posts: 39
Thanks for your reply.

can we append two .gzip files without extracting?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
No
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19784
    
  20

Thamizh Bharathi wrote:(its urgent)

Please EaseUp.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GZIP file append writing