public abstract class AbstractUnicodeExtraField extends Object implements ZipExtraField
EXTRAFIELD_HEADER_SIZE| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractUnicodeExtraField() | 
| protected  | AbstractUnicodeExtraField(String text,
                         byte[] bytes)Assemble as unicode extension from the name/comment and
 encoding of the original zip entry. | 
| protected  | AbstractUnicodeExtraField(String text,
                         byte[] bytes,
                         int off,
                         int len)Assemble as unicode extension from the name/comment and
 encoding of the original zip entry. | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | getCentralDirectoryData()The actual data to put into central directory - without Header-ID or
 length specifier. | 
| ZipShort | getCentralDirectoryLength()Length of the extra field in the central directory - without
 Header-ID or length specifier. | 
| 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 | getNameCRC32() | 
| byte[] | getUnicodeName() | 
| 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[] buffer,
                      int offset,
                      int length)Populate data from this array as if it was in local file data. | 
| void | setNameCRC32(long nameCRC32) | 
| void | setUnicodeName(byte[] unicodeName) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeaderIdprotected AbstractUnicodeExtraField()
protected AbstractUnicodeExtraField(String text, byte[] bytes, int off, int len)
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.protected AbstractUnicodeExtraField(String text, byte[] bytes)
text - The file name or comment.bytes - The encoded of the filename or comment in the zip
 file.public long getNameCRC32()
public void setNameCRC32(long nameCRC32)
nameCRC32 - The CRC32 checksum of the filename as encoded
         in the central directory of the zip file to set.public byte[] getUnicodeName()
public void setUnicodeName(byte[] unicodeName)
unicodeName - The UTF-8 encoded name to set.public byte[] getCentralDirectoryData()
ZipExtraFieldgetCentralDirectoryData in interface ZipExtraFieldpublic ZipShort getCentralDirectoryLength()
ZipExtraFieldgetCentralDirectoryLength in interface ZipExtraFieldpublic byte[] getLocalFileDataData()
ZipExtraFieldgetLocalFileDataData in interface ZipExtraFieldpublic ZipShort getLocalFileDataLength()
ZipExtraFieldgetLocalFileDataLength in interface ZipExtraFieldpublic void parseFromLocalFileData(byte[] buffer, int offset, int length) throws ZipException
ZipExtraFieldparseFromLocalFileData in interface ZipExtraFieldbuffer - the buffer to read data fromoffset - offset into buffer to read datalength - the length of dataZipException - on errorpublic void parseFromCentralDirectoryData(byte[] buffer, int offset, int length) throws ZipException
parseFromCentralDirectoryData in interface ZipExtraFieldbuffer - the buffer to read data fromoffset - offset into buffer to read datalength - the length of dataZipException - on errorCopyright © 2018 The Apache Software Foundation. All rights reserved.