类 JarMarker
java.lang.Object
com.sh.common.zip.JarMarker
- 所有已实现的接口:
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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明byte[]The actual data to put central directory - without Header-ID or length specifier.Length of the extra field in the central directory - without Header-ID or length specifier.The Header-ID.static JarMarkerSince JarMarker is stateless we can always use the same instance.byte[]The actual data to put into local file data - without Header-ID or length specifier.Length of the extra field in the local file data - without Header-ID or length specifier.voidparseFromLocalFileData(byte[] data, int offset, int length) Populate data from this array as if it was in local file data.
-
构造器详细资料
-
JarMarker
public JarMarker()No-arg constructor
-
-
方法详细资料
-
getInstance
Since JarMarker is stateless we can always use the same instance.- 返回:
- the DEFAULT jarmaker.
-
getHeaderId
The Header-ID.- 指定者:
getHeaderId在接口中ZipExtraField- 返回:
- the header id
-
getLocalFileDataLength
Length of the extra field in the local file data - without Header-ID or length specifier.- 指定者:
getLocalFileDataLength在接口中ZipExtraField- 返回:
- 0
-
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
Populate data from this array as if it was in local file data.- 指定者:
parseFromLocalFileData在接口中ZipExtraField- 参数:
data- an array of bytesoffset- the start offsetlength- the number of bytes in the array from offset- 抛出:
ZipException- on error
-