From: Ned Konz Date: 2002-07-09T23:35:48+09:00 Subject: Re: SV: SV: [ANN] Archive 0.2 On Tuesday 09 July 2002 06:41 am, Massimiliano Mirra wrote: > Basically, you need an Archive::Entry::Zip < > Archive::Entry::Generic that, given a io stream passed to > initialize, reads and parses an archive entry, and leaves the io > cursor at the beginning of the next one. If it can also output > itself in Zip format again, you will be able to pass entries to > Archive::Writer for writing. So the assumption is that headers precede data? Note that the Zip format usually has two headers per file: one before the file data, and one at the very end of the file. So ideally the archive reader would get the stream first and read the end directory if the stream was seekable, then position before the first header. Then as individual pre-file headers were read, their information could be merged as appropriate with the end-of-zip (Central Directory) information. -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE