public class InfoZipUnixExtraFieldFactory extends Object implements ZipEntryExtraFieldFactory
ZipEntryExtraFieldFactory for extra fields of the type
"Unix". It creates objects of the type InfoZipUnixExtraField.InfoZipUnixExtraField| Constructor and Description |
|---|
InfoZipUnixExtraFieldFactory()
Create a factory using the default uid and gid (1000/1000).
|
InfoZipUnixExtraFieldFactory(int uid,
int gid)
Create a factory that will give its created extra fields the supplied uid
and gid.
|
| Modifier and Type | Method and Description |
|---|---|
InfoZipUnixExtraField |
create(boolean inLocalHeader,
org.entityfs.el.AbsoluteLocation loc,
UnixEntityType entityType,
Object entryToZip,
ZipEntrySettings effectiveSettings)
Create a new
ZipEntryExtraField object based on the supplied
information about the entity to Zip. |
UnsignedShort |
getCode()
Get the code that identifies the kind of
ZipEntryExtraField
objects created by this factory in a Zip file. |
public InfoZipUnixExtraFieldFactory()
public InfoZipUnixExtraFieldFactory(int uid,
int gid)
uid - The uid to give created extra fields.gid - The gid to give created extra fields.public UnsignedShort getCode()
ZipEntryExtraFieldFactoryZipEntryExtraField
objects created by this factory in a Zip file.getCode in interface ZipEntryExtraFieldFactorypublic InfoZipUnixExtraField create(boolean inLocalHeader, org.entityfs.el.AbsoluteLocation loc, UnixEntityType entityType, Object entryToZip, ZipEntrySettings effectiveSettings)
ZipEntryExtraFieldFactoryZipEntryExtraField object based on the supplied
information about the entity to Zip.create in interface ZipEntryExtraFieldFactoryinLocalHeader - Should a local header or a central directory version
of the extra field be created?loc - The absolute location of the entry in the Zip file.entityType - The type of entity to zip.entryToZip - The file system entity to Zip. This may be a
ReadableFile, a DirectoryView,
a File directory or an InputStream. In
the latter case, this method cannot read any data from the stream.effectiveSettings - The effective settings for the entry.