Top Description Fields Constructors Methods
org.apache.tools.zip

public final Class UnparseableExtraFieldData

extends Object
implements CentralDirectoryParsingZipExtraField
Class Inheritance
All Implemented Interfaces
org.apache.tools.zip.CentralDirectoryParsingZipExtraField, org.apache.tools.zip.ZipExtraField

Wrapper for extra field data that doesn't conform to the recommended format of header-tag + size + data.

The header-id is artificial (and not listed as a known ID in APPNOTE.TXT). Since it isn't used anywhere except to satisfy the ZipExtraField contract it shouldn't matter anyway.

Since
Ant 1.8.1

Field Summary

Modifier and TypeField and Description
private byte[]
private static final ZipShort
private byte[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

The CentralDirectoryData value
getCentralDirectoryData
()

Implements org.apache.tools.zip.ZipExtraField.getCentralDirectoryData.

The actual data to put into central directory.
public ZipShort

Returns:

The CentralDirectoryLength value
getCentralDirectoryLength
()

Implements org.apache.tools.zip.ZipExtraField.getCentralDirectoryLength.

Length of the complete extra field in the central directory.
public ZipShort

Returns:

a completely arbitrary value that should be ignored.
getHeaderId
()

Implements org.apache.tools.zip.ZipExtraField.getHeaderId.

The Header-ID.
public byte[]

Returns:

The LocalFileDataData value
getLocalFileDataData
()

Implements org.apache.tools.zip.ZipExtraField.getLocalFileDataData.

The actual data to put into local file data.
public ZipShort

Returns:

The LocalFileDataLength value
getLocalFileDataLength
()

Implements org.apache.tools.zip.ZipExtraField.getLocalFileDataLength.

Length of the complete extra field in the local file data.
public void
parseFromCentralDirectoryData(byte[]
the buffer to read data from
buffer
,
int
offset into buffer to read data
offset
,
int
the length of data
length
)

Implements org.apache.tools.zip.CentralDirectoryParsingZipExtraField.parseFromCentralDirectoryData.

Populate data from this array as if it was in central directory data.
public void
parseFromLocalFileData(byte[]
the buffer to read data from
buffer
,
int
offset into buffer to read data
offset
,
int
the length of data
length
)

Implements org.apache.tools.zip.ZipExtraField.parseFromLocalFileData.

Populate data from this array as if it was in local file data.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

centralDirectoryDataback to summary
private byte[] centralDirectoryData
HEADER_IDback to summary
private static final ZipShort HEADER_ID
localFileDataback to summary
private byte[] localFileData

Constructor Detail

UnparseableExtraFieldDataback to summary
public UnparseableExtraFieldData()

Method Detail

getCentralDirectoryDataback to summary
public byte[] getCentralDirectoryData()

Implements org.apache.tools.zip.ZipExtraField.getCentralDirectoryData.

The actual data to put into central directory.

Returns:byte[]

The CentralDirectoryData value

getCentralDirectoryLengthback to summary
public ZipShort getCentralDirectoryLength()

Implements org.apache.tools.zip.ZipExtraField.getCentralDirectoryLength.

Length of the complete extra field in the central directory.

Returns:ZipShort

The CentralDirectoryLength value

getHeaderIdback to summary
public ZipShort getHeaderId()

Implements org.apache.tools.zip.ZipExtraField.getHeaderId.

The Header-ID.

Returns:ZipShort

a completely arbitrary value that should be ignored.

getLocalFileDataDataback to summary
public byte[] getLocalFileDataData()

Implements org.apache.tools.zip.ZipExtraField.getLocalFileDataData.

The actual data to put into local file data.

Returns:byte[]

The LocalFileDataData value

getLocalFileDataLengthback to summary
public ZipShort getLocalFileDataLength()

Implements org.apache.tools.zip.ZipExtraField.getLocalFileDataLength.

Length of the complete extra field in the local file data.

Returns:ZipShort

The LocalFileDataLength value

parseFromCentralDirectoryDataback to summary
public void parseFromCentralDirectoryData(byte[] buffer, int offset, int length)

Implements org.apache.tools.zip.CentralDirectoryParsingZipExtraField.parseFromCentralDirectoryData.

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

Parameters
buffer:byte[]

the buffer to read data from

offset:int

offset into buffer to read data

length:int

the length of data

parseFromLocalFileDataback to summary
public void parseFromLocalFileData(byte[] buffer, int offset, int length)

Implements org.apache.tools.zip.ZipExtraField.parseFromLocalFileData.

Populate data from this array as if it was in local file data.

Parameters
buffer:byte[]

the buffer to read data from

offset:int

offset into buffer to read data

length:int

the length of data