public class UnrecognizedExtraField extends Object implements ZipExtraField
Assumes local file data and central directory entries are identical - unless told the opposite.
Constructor and Description |
---|
UnrecognizedExtraField() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getCentralDirectoryData()
The actual data to put central directory - without Header-ID or
length specifier.
|
ZipShort |
getCentralDirectoryLength()
Length of the extra field in the central directory - without
Header-ID or length specifier.
|
ZipShort |
getHeaderId()
The Header-ID.
|
byte[] |
getLocalFileDataData()
The actual data to put into local file data - without Header-ID
or length specifier.
|
ZipShort |
getLocalFileDataLength()
Length of the extra field in the local file data - without
Header-ID or length specifier.
|
void |
parseFromLocalFileData(byte[] data,
int offset,
int length)
Populate data from this array as if it was in local file data.
|
void |
setCentralDirectoryData(byte[] data) |
void |
setHeaderId(ZipShort headerId) |
void |
setLocalFileDataData(byte[] data) |
public void setHeaderId(ZipShort headerId)
public ZipShort getHeaderId()
ZipExtraField
getHeaderId
in interface ZipExtraField
public void setLocalFileDataData(byte[] data)
public ZipShort getLocalFileDataLength()
ZipExtraField
getLocalFileDataLength
in interface ZipExtraField
public byte[] getLocalFileDataData()
ZipExtraField
getLocalFileDataData
in interface ZipExtraField
public void setCentralDirectoryData(byte[] data)
public ZipShort getCentralDirectoryLength()
ZipExtraField
getCentralDirectoryLength
in interface ZipExtraField
public byte[] getCentralDirectoryData()
ZipExtraField
getCentralDirectoryData
in interface ZipExtraField
public void parseFromLocalFileData(byte[] data, int offset, int length)
ZipExtraField
parseFromLocalFileData
in interface ZipExtraField
Copyright © 2001-2013 Codehaus. All Rights Reserved.