ZipExtraFieldpublic final class JarMarker extends java.lang.Object implements ZipExtraField
| Constructor | Description |
|---|---|
JarMarker() |
No-arg constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
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 in interface ZipExtraFieldpublic ZipShort getLocalFileDataLength()
getLocalFileDataLength in interface ZipExtraFieldpublic ZipShort getCentralDirectoryLength()
getCentralDirectoryLength in interface ZipExtraFieldpublic byte[] getLocalFileDataData()
getLocalFileDataData in interface ZipExtraFieldpublic byte[] getCentralDirectoryData()
getCentralDirectoryData in interface ZipExtraFieldpublic void parseFromLocalFileData(byte[] data,
int offset,
int length)
throws java.util.zip.ZipException
parseFromLocalFileData in interface ZipExtraFielddata - an array of bytesoffset - the start offsetlength - the number of bytes in the array from offsetjava.util.zip.ZipException - on error