Difference between revisions of "ZIM File Example"

Jump to navigation Jump to search
980 bytes added ,  21:04, 8 May 2011
no edit summary
Line 98: Line 98:
The article has the 0th mime type from the list, which is "text/html".
The article has the 0th mime type from the list, which is "text/html".


  0000080: 00<u>41</u> 0000 0000 0000 0000 0000 0000 4175</u>  .<u>A</u>............Au
  0000080: 0041 <u>00</u>00 0000 0000 0000 0000 0000 4175 .A............Au
No extra bytes are set.
 
0000080: 00<u>41</u> 0000 0000 0000 0000 0000 0000 4175 .<u>A</u>............Au
The namespace of the article is 'A'.
The namespace of the article is 'A'.


Line 106: Line 109:
  0000080: 0041 0000 0000 <u>0000 0000</u> 0000 0000 4175  .A............Au
  0000080: 0041 0000 0000 <u>0000 0000</u> 0000 0000 4175  .A............Au
The data can be found in cluster 0.
The data can be found in cluster 0.


  0000080: 0041 0000 0000 0000 0000 <u>0000 0000</u> 4175  .A............Au
  0000080: 0041 0000 0000 0000 0000 <u>0000 0000</u> 4175  .A............Au
And it is the 0th blob in the cluster.
And it is the 0th blob in the cluster.
0000080: 0041 0000 0000 0000 0000 0000 0000 <u>4175</u>  .A............<u>Au</u>
0000090: <u>746f 00</u>00 0100 0042 0000 0000 0000 0000  <u>to.</u>....B........
The url of the article is "Auto" and is zero terminated.
0000090: 746f 00<u>00</u> 0100 0042 0000 0000 0000 0000  to.....B........
The title is empty and hence the title is the same as the url: "Auto".
0000090: 746f 0000 <u>0100 0042 0000 0000 0000 0000</u>  to.....B........
00000a0: <u>0100 0000 4175 746f 0000</u> b200 0000 0000  ....Auto........
The next directory entry can be found at offset 0000 0000 0000 0094 and is the Article "Auto" of namespace 'B'.
0000090: 746f 0000 <u>0100</u> 0042 0000 0000 0000 0000  to.....B........
The mimetype is entry number 1 and hence the 2nd since the first is the number 0. The mimetype is then "text/plain".
The rest of the directory entry is similar to the fist one.

Navigation menu