public final class JarMarker extends java.lang.Object implements ZipExtraField
| 构造器和说明 |
|---|
JarMarker()
No-arg constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getCentralDirectoryData()
The actual data to put central directory - without Header-ID or
length specifier.
|
ZipShort |
getCentralDirectoryLength()
Length of the extra field in the central directory - without
Header-ID or length specifier.
|
ZipShort |
getHeaderId()
The Header-ID.
|
static JarMarker |
getInstance()
Since JarMarker is stateless we can always use the same instance.
|
byte[] |
getLocalFileDataData()
The actual data to put into local file data - without Header-ID
or length specifier.
|
ZipShort |
getLocalFileDataLength()
Length of the extra field in the local file data - without
Header-ID or length specifier.
|
void |
parseFromLocalFileData(byte[] data,
int offset,
int length)
Populate data from this array as if it was in local file data.
|
public static JarMarker getInstance()
public ZipShort getHeaderId()
getHeaderId 在接口中 ZipExtraFieldpublic ZipShort getLocalFileDataLength()
getLocalFileDataLength 在接口中 ZipExtraFieldpublic ZipShort getCentralDirectoryLength()
getCentralDirectoryLength 在接口中 ZipExtraFieldpublic byte[] getLocalFileDataData()
getLocalFileDataData 在接口中 ZipExtraFieldpublic byte[] getCentralDirectoryData()
getCentralDirectoryData 在接口中 ZipExtraFieldpublic void parseFromLocalFileData(byte[] data,
int offset,
int length)
throws java.util.zip.ZipException
parseFromLocalFileData 在接口中 ZipExtraFielddata - an array of bytesoffset - the start offsetlength - the number of bytes in the array from offsetjava.util.zip.ZipException - on error