|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.at4j.zip.ef.NewInfoZipUnixExtraField
public class NewInfoZipUnixExtraField
This, the "Unix2" Zip entry extra field, contains information on the owner UID/GID of the Zip entry.
The local header version contains UID/GID information. The central header version is empty.
NewInfoZipUnixExtraFieldFactory,
InfoZipUnixExtraField| Field Summary | |
|---|---|
static NewInfoZipUnixExtraField |
CENTRAL_HEADER_VERSION
This is the central header version of this extra field. |
static UnsignedShort |
CODE
|
| Constructor Summary | |
|---|---|
NewInfoZipUnixExtraField(UnsignedShort uid,
UnsignedShort gid)
This creates the local header version of this extra field. |
|
| Method Summary | |
|---|---|
byte[] |
encode(ZipBuilderConfiguration builder)
Encode this extra field's data for storing in a Zip file. |
boolean |
equals(Object o)
|
UnsignedShort |
getGid()
Get the owner group id for the Zip entry. |
UnsignedShort |
getUid()
Get the owner user id for the Zip entry. |
int |
hashCode()
|
boolean |
isInLocalHeader()
Is this field stored in the Zip entry's local header or in the Zip file's central directory record? |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final UnsignedShort CODE
public static final NewInfoZipUnixExtraField CENTRAL_HEADER_VERSION
| Constructor Detail |
|---|
public NewInfoZipUnixExtraField(UnsignedShort uid,
UnsignedShort gid)
uid - The owner user id.gid - The owner group id.| Method Detail |
|---|
public boolean isInLocalHeader()
ZipEntryExtraField
The same ZipEntryExtraField type may have different properties
depending on if it is specified in the local or in the central header.
isInLocalHeader in interface ZipEntryExtraFieldtrue if this extra field comes from the Zip entry's local
header. false if it comes from the Zip file's central directory.public UnsignedShort getUid()
null if this is the central header
version of this object.public UnsignedShort getGid()
null if this is the central header
version of this object.public byte[] encode(ZipBuilderConfiguration builder)
ZipEntryExtraField
encode in interface ZipEntryExtraFieldbuilder - The configuration for the Zip builder object that is building
the Zip file.
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||