public class UnparsedZipEntryExtraFieldFactory extends Object implements ZipEntryExtraFieldFactory
ZipEntryExtraFieldFactory
that is used when no
factory is found for a Zip entry extra field.
The singleton instance INSTANCE
may be used instead of instantiating
this class.
Modifier and Type | Field and Description |
---|---|
static UnparsedZipEntryExtraFieldFactory |
INSTANCE
Singleton instance that may be used instead of instantiating this class.
|
Constructor and Description |
---|
UnparsedZipEntryExtraFieldFactory() |
Modifier and Type | Method and Description |
---|---|
UnparsedZipEntryExtraField |
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()
This factory does not have a code.
|
public static final UnparsedZipEntryExtraFieldFactory INSTANCE
public UnsignedShort getCode()
getCode
in interface ZipEntryExtraFieldFactory
public UnparsedZipEntryExtraField create(boolean inLocalHeader, org.entityfs.el.AbsoluteLocation loc, UnixEntityType entityType, Object entryToZip, ZipEntrySettings effectiveSettings)
ZipEntryExtraFieldFactory
ZipEntryExtraField
object based on the supplied
information about the entity to Zip.create
in interface ZipEntryExtraFieldFactory
inLocalHeader
- 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.