程序包 | 说明 |
---|---|
com.sh.common.zip |
限定符和类型 | 接口和说明 |
---|---|
interface |
CentralDirectoryParsingZipExtraField
ZipExtraField that knows how to parse central
directory data. |
限定符和类型 | 类和说明 |
---|---|
class |
AbstractUnicodeExtraField
A common base class for Unicode extra information extra fields.
|
class |
AsiExtraField
Adds Unix file permission and UID/GID fields as well as symbolic
link handling.
|
class |
JarMarker
If this extra field is added as the very first extra field of the
archive, Solaris will consider it an executable jar file.
|
class |
UnicodeCommentExtraField
Info-ZIP Unicode Comment Extra Field (0x6375):
Stores the UTF-8 version of the file comment as stored in the
central directory header.
|
class |
UnicodePathExtraField
Info-ZIP Unicode Path Extra Field (0x7075):
Stores the UTF-8 version of the file name field as stored in the
local header and central directory header.
|
class |
UnparseableExtraFieldData
Wrapper for extra field data that doesn't conform to the recommended format of header-tag + size + data.
|
class |
UnrecognizedExtraField
Simple placeholder for all those extra fields we don't want to deal
with.
|
限定符和类型 | 方法和说明 |
---|---|
static ZipExtraField |
ExtraFieldUtils.createExtraField(ZipShort headerId)
Create an instance of the approriate ExtraField, falls back to
UnrecognizedExtraField . |
ZipExtraField |
ZipEntry.getExtraField(ZipShort type)
Looks up an extra field by its header id.
|
ZipExtraField[] |
ZipEntry.getExtraFields()
Retrieves all extra fields that have been parsed successfully.
|
ZipExtraField[] |
ZipEntry.getExtraFields(boolean includeUnparseable)
Retrieves extra fields.
|
static ZipExtraField[] |
ExtraFieldUtils.parse(byte[] data)
Split the array into ExtraFields and populate them with the given data as
local file data, throwing an exception if the data cannot be parsed.
|
static ZipExtraField[] |
ExtraFieldUtils.parse(byte[] data,
boolean local)
Split the array into ExtraFields and populate them with the given data,
throwing an exception if the data cannot be parsed.
|
static ZipExtraField[] |
ExtraFieldUtils.parse(byte[] data,
boolean local,
ExtraFieldUtils.UnparseableExtraField onUnparseableData)
Split the array into ExtraFields and populate them with the given data.
|
限定符和类型 | 方法和说明 |
---|---|
void |
ZipEntry.addAsFirstExtraField(ZipExtraField ze)
Adds an extra field - replacing an already present extra field
of the same type.
|
void |
ZipEntry.addExtraField(ZipExtraField ze)
Adds an extra field - replacing an already present extra field
of the same type.
|
static byte[] |
ExtraFieldUtils.mergeCentralDirectoryData(ZipExtraField[] data)
Merges the central directory fields of the given ZipExtraFields.
|
static byte[] |
ExtraFieldUtils.mergeLocalFileDataData(ZipExtraField[] data)
Merges the local file data fields of the given ZipExtraFields.
|
void |
ZipEntry.setExtraFields(ZipExtraField[] fields)
Replaces all currently attached extra fields with the new array.
|