This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 41147
    
  45
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 - my free Android networking tools app
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: 41147
    
  45
No
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

Thamizh Bharathi wrote:(its urgent)

Please EaseUp.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
wood burning stoves
 
subject: GZIP file append writing
 
Similar Threads
How to gzip more than one files together
add text to a .txt file
how to read a file which contains more than 1 EOF characters
Recovery from corrupt GZIP file
Writing (INSERTING) to a previously created text file