Methods Summary |
---|
public byte[] | getCentralDirectoryData()Get the central data.
if (centralData != null) {
return centralData;
}
return getLocalFileDataData();
|
public ZipShort | getCentralDirectoryLength()Get the central data length.
If there is no central data, get the local file data length.
if (centralData != null) {
return new ZipShort(centralData.length);
}
return getLocalFileDataLength();
|
public ZipShort | getHeaderId()Get the header id.
return headerId;
|
public byte[] | getLocalFileDataData()Get the local data.
return localData;
|
public ZipShort | getLocalFileDataLength()Get the length of the local data.
return new ZipShort(localData.length);
|
public void | parseFromLocalFileData(byte[] data, int offset, int length)
byte[] tmp = new byte[length];
System.arraycopy(data, offset, tmp, 0, length);
setLocalFileDataData(tmp);
|
public void | setCentralDirectoryData(byte[] data)Set the extra field data in central directory.
centralData = data;
|
public void | setHeaderId(ZipShort headerId)Set the header id.
this.headerId = headerId;
|
public void | setLocalFileDataData(byte[] data)Set the extra field data in the local file data -
without Header-ID or length specifier.
localData = data;
|