Package 

Class UnicodeCommentExtraField

  • 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static ZipShort UCOM_ID
    • Method Summary

      Modifier and Type Method Description
      ZipShort getHeaderId() 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 comment
        bytes - 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 name
        bytes - the bytes actually written to the archive
        off - The offset of the encoded comment in {@code bytes}.
        len - The length of the encoded comment or comment in {@code bytes}.