类 UnparseableExtraFieldData

java.lang.Object
com.sh.common.zip.UnparseableExtraFieldData
所有已实现的接口:
CentralDirectoryParsingZipExtraField, ZipExtraField

public final class UnparseableExtraFieldData extends Object implements CentralDirectoryParsingZipExtraField
Wrapper for extra field data that doesn't conform to the recommended format of header-tag + size + data. The header-id is artificial (and not listed as a know ID in the .ZIP File Format Specification). Since it isn't used anywhere except to satisfy the ZipExtraField contract it shouldn't matter anyway.ZIP File Format Specification
从以下版本开始:
Ant 1.8.1
  • 构造器详细资料

    • UnparseableExtraFieldData

      public UnparseableExtraFieldData()
  • 方法详细资料

    • getHeaderId

      public ZipShort getHeaderId()
      The Header-ID.
      指定者:
      getHeaderId 在接口中 ZipExtraField
      返回:
      a completely arbitrary value that should be ignored.
    • getLocalFileDataLength

      public ZipShort getLocalFileDataLength()
      Length of the complete extra field in the local file data.
      指定者:
      getLocalFileDataLength 在接口中 ZipExtraField
      返回:
      The LocalFileDataLength value
    • getCentralDirectoryLength

      public ZipShort getCentralDirectoryLength()
      Length of the complete extra field in the central directory.
      指定者:
      getCentralDirectoryLength 在接口中 ZipExtraField
      返回:
      The CentralDirectoryLength value
    • getLocalFileDataData

      public byte[] getLocalFileDataData()
      The actual data to put into local file data.
      指定者:
      getLocalFileDataData 在接口中 ZipExtraField
      返回:
      The LocalFileDataData value
    • getCentralDirectoryData

      public byte[] getCentralDirectoryData()
      The actual data to put into central directory.
      指定者:
      getCentralDirectoryData 在接口中 ZipExtraField
      返回:
      The CentralDirectoryData value
    • parseFromLocalFileData

      public void parseFromLocalFileData(byte[] buffer, int offset, int length)
      Populate data from this array as if it was in local file data.
      指定者:
      parseFromLocalFileData 在接口中 ZipExtraField
      参数:
      buffer - the buffer to read data from
      offset - offset into buffer to read data
      length - the length of data
    • parseFromCentralDirectoryData

      public void parseFromCentralDirectoryData(byte[] buffer, int offset, int length)
      Populate data from this array as if it was in central directory data.
      指定者:
      parseFromCentralDirectoryData 在接口中 CentralDirectoryParsingZipExtraField
      参数:
      buffer - the buffer to read data from
      offset - offset into buffer to read data
      length - the length of data