Class Zip64ExtensibleDataSector.RawSpecialPurposeData
- java.lang.Object
-
- com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.RawSpecialPurposeData
-
- All Implemented Interfaces:
Zip64ExtensibleDataSector.Z64SpecialPurposeData
- Enclosing class:
- Zip64ExtensibleDataSector
public static class Zip64ExtensibleDataSector.RawSpecialPurposeData extends java.lang.Object implements Zip64ExtensibleDataSector.Z64SpecialPurposeData
Special Purpose Data containing raw data: this class represents a general "special purpose data" containing an array of bytes as data.
-
-
Field Summary
-
Fields inherited from interface com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.Z64SpecialPurposeData
PREFIX_LENGTH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeaderId()Obtains the Special purpose data's header id.intsize()Obtains the size of the data in this special purpose data.voidwrite(java.nio.ByteBuffer out)Writes the special purpose data to the buffer.
-
-
-
Method Detail
-
getHeaderId
public int getHeaderId()
Description copied from interface:Zip64ExtensibleDataSector.Z64SpecialPurposeDataObtains the Special purpose data's header id.- Specified by:
getHeaderIdin interfaceZip64ExtensibleDataSector.Z64SpecialPurposeData- Returns:
- the data's header id.
-
size
public int size()
Description copied from interface:Zip64ExtensibleDataSector.Z64SpecialPurposeDataObtains the size of the data in this special purpose data.- Specified by:
sizein interfaceZip64ExtensibleDataSector.Z64SpecialPurposeData- Returns:
- the number of bytes needed to write the data.
-
write
public void write(java.nio.ByteBuffer out) throws java.io.IOExceptionDescription copied from interface:Zip64ExtensibleDataSector.Z64SpecialPurposeDataWrites the special purpose data to the buffer.- Specified by:
writein interfaceZip64ExtensibleDataSector.Z64SpecialPurposeData- Parameters:
out- the buffer where to write the data to; exactlyZip64ExtensibleDataSector.Z64SpecialPurposeData.size()bytes will be written.- Throws:
java.io.IOException- failed to write special purpose data.
-
-