HEADER_ID
HEADER_ID = 0xcafe : int
Jar Marker Extra Field.
An executable Java program can be packaged in a JAR file with all the libraries it uses. Executable JAR files can easily be distinguished from the files packed in the JAR file by the extra field in the first file, which is hexadecimal in the 0xCAFE bytes series. If this extra field is added as the very first extra field of the archive, Solaris will consider it an executable jar file.
unpackLocalFileData(string $buffer, \PhpZip\Model\ZipEntry|null $entry = null) : \PhpZip\Model\Extra\Fields\JarMarkerExtraField
Populate data from this array as if it was in local file data.
string | $buffer | the buffer to read data from |
\PhpZip\Model\ZipEntry|null | $entry |
on error
unpackCentralDirData(string $buffer, \PhpZip\Model\ZipEntry|null $entry = null) : \PhpZip\Model\Extra\Fields\JarMarkerExtraField
Populate data from this array as if it was in central directory data.
string | $buffer | the buffer to read data from |
\PhpZip\Model\ZipEntry|null | $entry |
on error