The .ZIP format uses specific 4-byte "signatures" to denote the various structures in the file. Each file entry is marked by a specific signature. The end of central directory record is indicated with its specific signature, and each entry in the central directory starts with the 4-byte central file header signature.
There is no BOF or EOF marker in the .ZIP specification. Conventionally the first thing in a .ZIP file is a .ZIP entry, which can be identified easily by its local file header signature. However, this is not necessarily the case, as this not required by the .ZIP specification - most notably, a self-extracting archive will begin with an executable file header.
Tools that correctly read .ZIP archives must scan for the end of central directory record signature, and then, as appropriate, the other, indicated, central directory records. They must not scan for entries from the top of the ZIP file, because only the central directory specifies where a file chunk starts. Scanning could lead to false positives, as the format does not forbid other data to be between chunks, nor file data streams from containing such signatures. However, tools that attempt to recover data from damaged .ZIP archives will most likely scan the archive for local file header signatures; this is made more difficult by the fact that the compressed size of a file chunk may be stored after the file chunk, making sequential processing difficult.
Most of the signatures end with the short integer 0x4b50, which is stored in little-endian ordering. Viewed as an ASCII string this reads "PK", the initials of the inventor Phil Katz. Thus, when a .ZIP file is viewed in a text editor the first two bytes of the file are usually "PK". (DOS, OS/2 and Windows self-extracting ZIPs have an EXE before the ZIP so start with "MZ"; self-extracting ZIPs for other operating systems may similarly be preceded by executable code for extracting the archive's content on that platform.)
The .ZIP specification also supports spreading archives across multiple filesystem files. Originally intended for storage of large .ZIP files across multiple floppy disks, this feature is now used for sending .ZIP archives in parts over email, or over other transports or removable media.
The FAT filesystem of DOS has a timestamp resolution of only two seconds; .ZIP file records mimic this. As a result, the built-in timestamp resolution of files in a .ZIP archive is only two seconds, though extra fields can be used to store more precise timestamps. The .ZIP format has no notion of time zone, so timestamps are only meaningful if it is known what time zone they were created in.
In September 2007, PKWARE released a revision of the .ZIP specification providing for the storage of file names using UTF-8, finally adding Unicode compatibility to .ZIP.
การใช้รูปแบบซิป . 4-byte " เฉพาะลายเซ็น " เพื่อแสดงถึงโครงสร้างต่างๆ ในไฟล์ รายการแต่ละไฟล์มีการทำเครื่องหมายโดยลายเซ็นที่เฉพาะเจาะจง จบบันทึกไดเรกทอรีกลางแสดงลายเซ็นต์เฉพาะของตน และแต่ละรายการในไดเรกทอรีกลางเริ่มต้นด้วย 4-byte กลางไฟล์ส่วนหัวลายเซ็น
ไม่มี BOF หรือช่วงเครื่องหมายในคุณสมบัติซิปโดยทั่วไปสิ่งแรกใน zip ไฟล์เป็น . zip รายการ ซึ่งสามารถระบุได้อย่างง่ายดายโดยลายเซ็นส่วนหัวของแฟ้มท้องถิ่น อย่างไรก็ตาม นี่ไม่ใช่กรณี นี้ไม่ได้บังคับใช้โดยซิป . สเปค - สะดุดตาที่สุด , ด้วยตนเองแยกแฟ้มจะเริ่มต้นด้วยส่วนหัวของแฟ้มที่ปฏิบัติการได้
เครื่องมือที่ถูกต้องอ่านต่อคลังซิปต้องสแกนสำหรับจุดสิ้นสุดของไดเรกทอรีกลางบันทึกลายเซ็นแล้วตามความเหมาะสม อื่น ๆ , พบ , บันทึกไดเรกทอรีกลาง พวกเขาไม่ต้องสแกนสำหรับรายการจากด้านบนของไฟล์ซิปเพราะเพียงไดเรกทอรีที่ไฟล์ก้อนกลาง กำหนดเริ่ม การสแกนอาจจะบวกเท็จ , เป็นรูปแบบไม่ได้ห้ามข้อมูลอื่น ๆอยู่ระหว่าง อย่างชัดเจนหรือไฟล์สตรีมข้อมูลจากที่มีลายเซ็นดังกล่าว อย่างไรก็ตาม เครื่องมือที่พยายามที่จะกู้คืนข้อมูลจากความเสียหายที่เก็บซิป . ส่วนใหญ่จะสแกนแฟ้มของส่วนหัวของแฟ้มท้องถิ่น นี้จะทำให้ยากขึ้น โดยข้อเท็จจริงว่า ขนาดการบีบอัดของไฟล์อาจจะถูกเก็บไว้หลังก้อนก้อนไฟล์ ทำให้การประมวลผลแบบยาก
ที่สุดของลายเซ็นลงท้ายด้วย 0x4b50 จำนวนเต็มสั้นๆ ที่ถูกเก็บไว้ใน endian น้อยสั่ง ดูเป็น ASCII String นี้อ่านว่า " PK " ชื่อย่อของนักประดิษฐ์ Phil Katz ดังนั้น เมื่อไฟล์ซิป . ดู ในตัวแก้ไขข้อความสองไบต์แรกของไฟล์มักจะ " PK " ( DOS , OS / 2 และ Windows ตนเองสกัด . มี exe ก่อนซิปเริ่มด้วย " คุณนาย "ตนเองสกัด . สำหรับระบบปฏิบัติการอื่น ๆอาจจะเหมือนกับถูกนำหน้าโดยปฏิบัติการรหัสแยกเนื้อหาของเอกสารบนแท่นนั่น )
คุณสมบัติซิปยังสนับสนุนการกระจายเอกสารข้ามหลายไฟล์ระบบแฟ้ม . ตั้งใจเดิมสำหรับการจัดเก็บขนาดใหญ่ ไฟล์ ZIP ข้ามหลายแผ่นฟล็อปปี้ดิสก์ คุณลักษณะนี้จะใช้สำหรับการส่งไปรษณีย์ในส่วนผ่านอีเมล์หรือการขนส่งอื่น ๆหรือสื่อที่ถอดได้
ระบบแฟ้มไขมันของ DOS มีการประทับเวลาความละเอียดเพียงสองวินาที บันทึกไฟล์เสียงนี้ ผล ในเวลาที่ความละเอียดของไฟล์ . zip เก็บเพียงสองวินาที แม้ว่าเขตพิเศษสามารถใช้เก็บแม่นกว่า timestamps . ในรูปแบบซิป . ไม่มีความคิดของโซนเวลาดังนั้นเวลาประทับจะมีความหมายมากถ้ามันเป็นที่รู้จักกันว่าโซนเวลาที่พวกเขาถูกสร้างขึ้นใน
ในเดือนกันยายน 2007 pkware ออกแก้ไขซิป . กำหนดให้จัดเก็บชื่อไฟล์ใช้ UTF - 8 , ในที่สุดการเพิ่มความเข้ากันได้ของ . ZIP
การแปล กรุณารอสักครู่..
