| Modifier and Type | Field and Description |
|---|---|
| private static final int | DATA_DESCRIPTOR_FLAG
Indicates that a data descriptor stored after the file contents will hold CRC and size information. |
| private boolean | |
| private static final int | ENCRYPTION_FLAG
Indicates that the file is encrypted. |
| private boolean | |
| private boolean | |
| private static final int | STRONG_ENCRYPTION_FLAG
Indicates strong encryption. |
| private boolean | |
| public static final int | UFT8_NAMES_FLAG
Indicates that filenames are written in utf-8. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public byte[] | |
| public void | encode(byte[]
the output buffer buf, int The offset within the output buffer of the first byte to be written.
must be non-negative and no larger than offset)buf.length-2Encodes the set bits in a form suitable for ZIP archives. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int | |
| public static GeneralPurposeBit | Returns: GeneralPurposeBitlocal file header or a central directory entry. data, final int offset at which the general purpose bit starts offset)Parses the supported flags from the given archive data. |
| public void | useDataDescriptor(boolean
boolean b)whether the current entry will use the data descriptor to store CRC and size information |
| public void | |
| public boolean | Returns: booleanwhether the current entry uses the data descriptor to store CRC and size information |
| public boolean | |
| public boolean | Returns: booleanwhether the current entry is encrypted using strong encryption |
| public void | useStrongEncryption(boolean
boolean b)whether the current entry will be encrypted using strong encryption |
| public boolean | |
| public void |
| DATA_DESCRIPTOR_FLAG | back to summary |
|---|---|
| private static final int DATA_DESCRIPTOR_FLAG Indicates that a data descriptor stored after the file contents will hold CRC and size information. | |
| dataDescriptorFlag | back to summary |
|---|---|
| private boolean dataDescriptorFlag | |
| ENCRYPTION_FLAG | back to summary |
|---|---|
| private static final int ENCRYPTION_FLAG Indicates that the file is encrypted. | |
| encryptionFlag | back to summary |
|---|---|
| private boolean encryptionFlag | |
| languageEncodingFlag | back to summary |
|---|---|
| private boolean languageEncodingFlag | |
| STRONG_ENCRYPTION_FLAG | back to summary |
|---|---|
| private static final int STRONG_ENCRYPTION_FLAG Indicates strong encryption. | |
| strongEncryptionFlag | back to summary |
|---|---|
| private boolean strongEncryptionFlag | |
| UFT8_NAMES_FLAG | back to summary |
|---|---|
| public static final int UFT8_NAMES_FLAG Indicates that filenames are written in utf-8. The only reason this is public is that | |
| GeneralPurposeBit | back to summary |
|---|---|
| public GeneralPurposeBit() | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| encode | back to summary |
|---|---|
| public byte[] encode() Encodes the set bits in a form suitable for ZIP archives.
| |
| encode | back to summary |
|---|---|
| public void encode(byte[] buf, int offset) Encodes the set bits in a form suitable for ZIP archives.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parse | back to summary |
|---|---|
| public static GeneralPurposeBit parse(final byte[] data, final int offset) Parses the supported flags from the given archive data.
| |
| useDataDescriptor | back to summary |
|---|---|
| public void useDataDescriptor(boolean b) whether the current entry will use the data descriptor to store CRC and size information
| |
| useEncryption | back to summary |
|---|---|
| public void useEncryption(boolean b) whether the current entry will be encrypted
| |
| usesDataDescriptor | back to summary |
|---|---|
| public boolean usesDataDescriptor() whether the current entry uses the data descriptor to store CRC and size information
| |
| usesEncryption | back to summary |
|---|---|
| public boolean usesEncryption() whether the current entry is encrypted
| |
| usesStrongEncryption | back to summary |
|---|---|
| public boolean usesStrongEncryption() whether the current entry is encrypted using strong encryption
| |
| useStrongEncryption | back to summary |
|---|---|
| public void useStrongEncryption(boolean b) whether the current entry will be encrypted using strong encryption
| |
| usesUTF8ForNames | back to summary |
|---|---|
| public boolean usesUTF8ForNames() whether the current entry uses UTF8 for file name and comment.
| |
| useUTF8ForNames | back to summary |
|---|---|
| public void useUTF8ForNames(boolean b) whether the current entry will use UTF8 for file name and comment.
| |