A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Zip: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(basic setup for comparing zip URL tactics)
Line 1: Line 1:
== URLs ==
{| class="wikitable"
|-
! name
! example
! nested zips
! in-zip-URLs
|-
! sub-scheme
| zip:http://example.org/test!image.jpg
|
|
|-
! zip-path
| http://example.org/test%!image.jpg ("%!" as separator)
|
|
|-
! zip-path #2
| http://example.org/test.zip!image.jpg (".zip!" as separator)
|
|
|-
! fragment + zip URL
| http://example.org/test#
|
|
|}
== Format ==
For http://fetch.spec.whatwg.org/#zip-archives we need to document the zip format. Either through reference to the PKWARE text, or via a new standard (XKCD-style).
For http://fetch.spec.whatwg.org/#zip-archives we need to document the zip format. Either through reference to the PKWARE text, or via a new standard (XKCD-style).


== Gecko ==
=== Gecko ===


  baku https://mxr.mozilla.org/mozilla-central/source/dom/file/ArchiveZipEvent.cpp
  baku https://mxr.mozilla.org/mozilla-central/source/dom/file/ArchiveZipEvent.cpp
Line 10: Line 43:
  baku you have an ArchiveZipFile for each file.
  baku you have an ArchiveZipFile for each file.


== PKWARE ==
=== PKWARE ===


* http://www.pkware.com/documents/casestudies/APPNOTE.TXT
* http://www.pkware.com/documents/casestudies/APPNOTE.TXT

Revision as of 16:10, 12 September 2013

URLs

name example nested zips in-zip-URLs
sub-scheme zip:http://example.org/test!image.jpg
zip-path http://example.org/test%!image.jpg ("%!" as separator)
zip-path #2 http://example.org/test.zip!image.jpg (".zip!" as separator)
fragment + zip URL http://example.org/test#


Format

For http://fetch.spec.whatwg.org/#zip-archives we need to document the zip format. Either through reference to the PKWARE text, or via a new standard (XKCD-style).

Gecko

baku https://mxr.mozilla.org/mozilla-central/source/dom/file/ArchiveZipEvent.cpp
baku https://mxr.mozilla.org/mozilla-central/source/dom/file/ArchiveZipFile.cpp
baku so the first file (line 120~)
baku reads the file and creates ArchiveZipItem for each file contained in the archive
baku ArhiceZipFile implements a nsIInputStream and what it does is the reading of the content.
baku you have an ArchiveZipFile for each file.

PKWARE