Package 

Class UnrecognizedExtraField

  • All Implemented Interfaces:
    org.readium.r2.shared.util.zip.compress.archivers.zip.ZipExtraField

    
    public class UnrecognizedExtraField
     implements ZipExtraField
                        

    Simple placeholder for all those extra fields we don't want to deal with.

    Assumes local file data and central directory entries are identical - unless told the opposite.

    • Method Detail

      • setHeaderId

         void setHeaderId(ZipShort headerId)

        Set the header id.

        Parameters:
        headerId - the header id to use
      • parseFromCentralDirectoryData

         void parseFromCentralDirectoryData(Array<byte> data, int offset, int length)
        Parameters:
        data - the array of bytes.
        offset - the source location in the data array.
        length - the number of bytes to use in the data array.
      • parseFromLocalFileData

         void parseFromLocalFileData(Array<byte> data, int offset, int length)
        Parameters:
        data - the array of bytes.
        offset - the source location in the data array.
        length - the number of bytes to use in the data array.
      • setCentralDirectoryData

         void setCentralDirectoryData(Array<byte> data)

        Set the extra field data in central directory.

        Parameters:
        data - the data to use
      • setLocalFileDataData

         void setLocalFileDataData(Array<byte> data)

        Set the extra field data in the local file data -without Header-ID or length specifier.

        Parameters:
        data - the field data to use