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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39544
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
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: 39544
    
  27
No
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

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
 
Similar Threads
add text to a .txt file
Writing (INSERTING) to a previously created text file
Recovery from corrupt GZIP file
How to gzip more than one files together
how to read a file which contains more than 1 EOF characters