public class X7875_NewUnix extends Objectimplements ZipExtraField , Cloneable , Serializable
Value Size Description
----- ---- -----------
0x7875 Short tag for this extra block type ("ux")
TSize Short total data size for this block
Version 1 byte version of this extra field, currently 1
UIDSize 1 byte Size of UID field
UID Variable UID for this entry (little endian)
GIDSize 1 byte Size of GID field
GID Variable GID for this entry (little endian)
| Constructor and Description |
|---|
X7875_NewUnix()
Constructor for X7875_NewUnix.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
|
boolean |
equals(Object
|
byte[] |
getCentralDirectoryData()
The actual data to put into central directory data - without Header-ID or length specifier.
|
ZipShort |
getCentralDirectoryLength()
Length of the extra field in the central directory data - without Header-ID or length specifier.
|
long |
getGID()
Gets the GID as a long.
|
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.
|
long |
getUID()
Gets the UID as a long.
|
int |
hashCode()
|
void |
parseFromCentralDirectoryData(byte[] buffer, int offset, int length)
Doesn't do anything special since this class always uses the same data in central directory and local file data.
|
void |
parseFromLocalFileData(byte[] data, int offset, int length)
Populate data from this array as if it was in local file data.
|
void |
setGID(long l)
Sets the GID.
|
void |
setUID(long l)
Sets the UID.
|
String |
toString()
Returns a String representation of this class useful for debugging purposes.
|
public ZipShortgetHeaderId()
getHeaderId in interface
ZipExtraField
public long getUID()
public long getGID()
public void setUID(long l)
l - UID value to set on this extra field.
public void setGID(long l)
l - GID value to set on this extra field.
public ZipShortgetLocalFileDataLength()
getLocalFileDataLength in interface
ZipExtraField
ZipShort for the length of the data of this extra field
public ZipShortgetCentralDirectoryLength()
getCentralDirectoryLength in interface
ZipExtraField
ZipShort for the length of the data of this extra field
public byte[] getLocalFileDataData()
getLocalFileDataData in interface
ZipExtraField
public byte[] getCentralDirectoryData()
getCentralDirectoryData in interface
ZipExtraField
public void parseFromLocalFileData(byte[] data,
int offset,
int length)
throws ZipException
parseFromLocalFileData in interface
ZipExtraField
data - an array of bytes
offset - the start offset
length - the number of bytes in the array from offset
ZipException - on error
public void parseFromCentralDirectoryData(byte[] buffer,
int offset,
int length)
throws ZipException
parseFromCentralDirectoryData in interface
ZipExtraField
buffer - the buffer to read data from
offset - offset into buffer to read data
length - the length of data
ZipException - on error
public StringtoString()
public Objectclone() throws CloneNotSupportedException
clone in class
Object
CloneNotSupportedException
public boolean equals(Objecto)
public int hashCode()