OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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