Top Description Methods
org.apache.tools.zip

public Interface CentralDirectoryParsingZipExtraField

extends ZipExtraField
Known Direct Implementers
org.apache.tools.zip.UnparseableExtraFieldData, org.apache.tools.zip.UnrecognizedExtraField, org.apache.tools.zip.Zip64ExtendedInformationExtraField
Imports
java.util.zip.ZipException

ZipExtraField that knows how to parse central directory data.
Since
Ant 1.8.0

Method Summary

Modifier and TypeMethod and Description
public void
parseFromCentralDirectoryData(byte[]
an array of bytes
data
,
int
the start offset
offset
,
int
the number of bytes in the array from offset
length
)

Populate data from this array as if it was in central directory data.

Inherited from org.apache.tools.zip.ZipExtraField:
getCentralDirectoryDatagetCentralDirectoryLengthgetHeaderIdgetLocalFileDataDatagetLocalFileDataLengthparseFromLocalFileData

Method Detail

parseFromCentralDirectoryDataback to summary
public void parseFromCentralDirectoryData(byte[] data, int offset, int length) throws ZipException

Populate data from this array as if it was in central directory data.

Parameters
data:byte[]

an array of bytes

offset:int

the start offset

length:int

the number of bytes in the array from offset

Exceptions
ZipException:
on error