-
- All Implemented Interfaces:
-
org.readium.r2.shared.util.zip.compress.archivers.zip.ZipExtraField
public class UnicodeCommentExtraField extends AbstractUnicodeExtraField
Info-ZIP Unicode Comment Extra Field (0x6375):
Stores the UTF-8 version of the file comment as stored in the central directory header.
-
-
Constructor Summary
Constructors Constructor Description UnicodeCommentExtraField()UnicodeCommentExtraField(String comment, Array<byte> bytes)Assemble as unicode comment extension from the comment given astext as well as the bytes actually written to the archive. UnicodeCommentExtraField(String text, Array<byte> bytes, int off, int len)Assemble as unicode comment extension from the name given astext as well as the encoded bytes actually written to the archive.
-
Method Summary
Modifier and Type Method Description ZipShortgetHeaderId()The Header-ID. -
Methods inherited from class org.readium.r2.shared.util.zip.compress.archivers.zip.AbstractUnicodeExtraField
getCentralDirectoryData, getCentralDirectoryLength, getLocalFileDataData, getLocalFileDataLength, getNameCRC32, getUnicodeName, parseFromCentralDirectoryData, parseFromLocalFileData, setNameCRC32, setUnicodeName -
Methods inherited from class org.readium.r2.shared.util.zip.compress.archivers.zip.ZipExtraField
parseFromCentralDirectoryData, parseFromLocalFileData -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UnicodeCommentExtraField
UnicodeCommentExtraField()
-
UnicodeCommentExtraField
UnicodeCommentExtraField(String comment, Array<byte> bytes)
Assemble as unicode comment extension from the comment given astext as well as the bytes actually written to the archive.- Parameters:
comment- The file commentbytes- the bytes actually written to the archive
-
UnicodeCommentExtraField
UnicodeCommentExtraField(String text, Array<byte> bytes, int off, int len)
Assemble as unicode comment extension from the name given astext as well as the encoded bytes actually written to the archive.- Parameters:
text- The file namebytes- the bytes actually written to the archiveoff- The offset of the encoded comment in{@code bytes}.len- The length of the encoded comment or comment in{@code bytes}.
-
-
Method Detail
-
getHeaderId
ZipShort getHeaderId()
The Header-ID.
-
-
-
-