类 JarMarker

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

public final class JarMarker extends Object implements ZipExtraField
If this extra field is added as the very first extra field of the archive, Solaris will consider it an executable jar file.
从以下版本开始:
Ant 1.6.3
  • 构造器详细资料

    • JarMarker

      public JarMarker()
      No-arg constructor
  • 方法详细资料

    • getInstance

      public static JarMarker getInstance()
      Since JarMarker is stateless we can always use the same instance.
      返回:
      the DEFAULT jarmaker.
    • getHeaderId

      public ZipShort getHeaderId()
      The Header-ID.
      指定者:
      getHeaderId 在接口中 ZipExtraField
      返回:
      the header id
    • getLocalFileDataLength

      public ZipShort getLocalFileDataLength()
      Length of the extra field in the local file data - without Header-ID or length specifier.
      指定者:
      getLocalFileDataLength 在接口中 ZipExtraField
      返回:
      0
    • getCentralDirectoryLength

      public ZipShort getCentralDirectoryLength()
      Length of the extra field in the central directory - without Header-ID or length specifier.
      指定者:
      getCentralDirectoryLength 在接口中 ZipExtraField
      返回:
      0
    • getLocalFileDataData

      public byte[] getLocalFileDataData()
      The actual data to put into local file data - without Header-ID or length specifier.
      指定者:
      getLocalFileDataData 在接口中 ZipExtraField
      返回:
      the data
      从以下版本开始:
      1.1
    • getCentralDirectoryData

      public byte[] getCentralDirectoryData()
      The actual data to put central directory - without Header-ID or length specifier.
      指定者:
      getCentralDirectoryData 在接口中 ZipExtraField
      返回:
      the data
    • parseFromLocalFileData

      public void parseFromLocalFileData(byte[] data, int offset, int length) throws ZipException
      Populate data from this array as if it was in local file data.
      指定者:
      parseFromLocalFileData 在接口中 ZipExtraField
      参数:
      data - an array of bytes
      offset - the start offset
      length - the number of bytes in the array from offset
      抛出:
      ZipException - on error