org.apache.tools.zip
public final class JarMarker extends Object implements ZipExtraField
Since: Ant 1.6.3
| Constructor Summary | |
|---|---|
| JarMarker() No-arg constructor | |
| Method Summary | |
|---|---|
| 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. |
Returns: the data
Returns: 0
Returns: the header id
Returns: the DEFAULT jarmaker.
Returns: the data
Since: 1.1
Returns: 0
Parameters: data an array of bytes offset the start offset length the number of bytes in the array from offset
Throws: ZipException on error