org.apache.tools.zip
public abstract class AbstractUnicodeExtraField extends Object implements ZipExtraField
Constructor Summary | |
---|---|
protected | AbstractUnicodeExtraField() |
protected | AbstractUnicodeExtraField(String text, byte[] bytes, int off, int len)
Assemble as unicode extension from the name/comment and
encoding of the orginal zip entry.
|
protected | AbstractUnicodeExtraField(String text, byte[] bytes)
Assemble as unicode extension from the name/comment and
encoding of the orginal zip entry.
|
Method Summary | |
---|---|
byte[] | getCentralDirectoryData() |
ZipShort | getCentralDirectoryLength() |
byte[] | getLocalFileDataData() |
ZipShort | getLocalFileDataLength() |
long | getNameCRC32() |
byte[] | getUnicodeName() |
void | parseFromLocalFileData(byte[] buffer, int offset, int length) |
void | setNameCRC32(long nameCRC32) |
void | setUnicodeName(byte[] unicodeName) |
Parameters: text The file name or comment. bytes The encoded of the filename or comment in the zip
file. off The offset of the encoded filename or comment in
bytes
. len The length of the encoded filename or commentin
bytes
.
Parameters: text The file name or comment. bytes The encoded of the filename or comment in the zip file.
Returns: The CRC32 checksum of the filename or comment as encoded in the central directory of the zip file.
Returns: The utf-8 encoded name.
Parameters: nameCRC32 The CRC32 checksum of the filename as encoded in the central directory of the zip file to set.
Parameters: unicodeName The utf-8 encoded name to set.