| java.lang.Object org.apache.tools.zip.UnrecognizedExtraField
UnrecognizedExtraField | public class UnrecognizedExtraField implements ZipExtraField(Code) | | Simple placeholder for all those extra fields we don't want to deal
with.
Assumes local file data and central directory entries are
identical - unless told the opposite.
|
getCentralDirectoryData | public byte[] getCentralDirectoryData()(Code) | | Get the central data.
the central data if present, else return the local file data |
getCentralDirectoryLength | public ZipShort getCentralDirectoryLength()(Code) | | Get the central data length.
If there is no central data, get the local file data length.
the central data length |
getHeaderId | public ZipShort getHeaderId()(Code) | | Get the header id.
the header id |
getLocalFileDataData | public byte[] getLocalFileDataData()(Code) | | Get the local data.
the local data |
getLocalFileDataLength | public ZipShort getLocalFileDataLength()(Code) | | Get the length of the local data.
the length of the local data |
parseFromLocalFileData | public void parseFromLocalFileData(byte[] data, int offset, int length)(Code) | | Parameters: data - the array of bytes. Parameters: offset - the source location in the data array. Parameters: length - the number of bytes to use in the data array. See Also: ZipExtraField.parseFromLocalFileData(byte[]intint) |
setCentralDirectoryData | public void setCentralDirectoryData(byte[] data)(Code) | | Set the extra field data in central directory.
Parameters: data - the data to use |
setHeaderId | public void setHeaderId(ZipShort headerId)(Code) | | Set the header id.
Parameters: headerId - the header id to use |
setLocalFileDataData | public void setLocalFileDataData(byte[] data)(Code) | | Set the extra field data in the local file data -
without Header-ID or length specifier.
Parameters: data - the field data to use |
|
|