Re: [xml-dev] Packaging (was Re: [xml-dev] Interoperability)

From
James Clark <>
To
David Megginson <>,
Date
2001-11-17T00:34:53Z
ID
<62731433.1005982492@[192.168.0.234]>
Thread
Re: [xml-dev] Packaging (was Re: [xml-dev] Interoperability)
> The problem is
> that ZIP is non-streaming -- you have to download the entire zip file
> before you can start processing it, since the directory information is
> at the end.

Each member in the ZIP file has a header, so you can read the members 
without reading the header first. The JDK has a class that reads a ZIP file 
from a stream:

  http://java.sun.com/j2se/1.3/docs/api/java/util/zip/ZipInputStream.html

Also, HTTP 1.1 has byte-ranges, which means, at least using HTTP 1.1, you 
don't have to download the entire zip file even if you need to get the 
directory.

James