Class Zip64Eocd
- java.lang.Object
-
- com.android.tools.build.apkzlib.zip.Zip64Eocd
-
public class Zip64Eocd extends java.lang.ObjectZip64 End of Central Directory record in a zip file.
-
-
Field Summary
Fields Modifier and Type Field Description static intSIZE_OFFSETThe location of the Zip64 size field relative to the start of the Zip64 EOCD.static intTRUE_SIZE_DIFFERENCEThe difference between the size in the size field and the true size of the Zip64 EOCD.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDirectoryOffset()longgetDirectorySize()Zip64ExtensibleDataSectorgetExtraFields()longgetTotalRecords()longgetVersionToExtract()intsize()Gets the size (in bytes) of the Zip64 EOCD record.byte[]toBytes()Gets the byte representation of The Zip64 EOCD record.
-
-
-
Field Detail
-
SIZE_OFFSET
public static final int SIZE_OFFSET
The location of the Zip64 size field relative to the start of the Zip64 EOCD.
-
TRUE_SIZE_DIFFERENCE
public static final int TRUE_SIZE_DIFFERENCE
The difference between the size in the size field and the true size of the Zip64 EOCD. The size field in the EOCD does not consider the size field and the identifier field when calculating the size of the Zip64 EOCD record.
-
-
Method Detail
-
size
public int size()
Gets the size (in bytes) of the Zip64 EOCD record.- Returns:
- the size of the record.
-
getTotalRecords
public long getTotalRecords()
-
getDirectorySize
public long getDirectorySize()
-
getDirectoryOffset
public long getDirectoryOffset()
-
getExtraFields
public Zip64ExtensibleDataSector getExtraFields()
-
getVersionToExtract
public long getVersionToExtract()
-
toBytes
public byte[] toBytes()
Gets the byte representation of The Zip64 EOCD record.- Returns:
- the bytes of the EOCD.
-
-