org.at4j.zip.ef
Class UnparsedZipEntryExtraFieldFactory
java.lang.Object
org.at4j.zip.ef.UnparsedZipEntryExtraFieldFactory
- All Implemented Interfaces:
- ZipEntryExtraFieldFactory
public class UnparsedZipEntryExtraFieldFactory
- extends Object
- implements ZipEntryExtraFieldFactory
This is the fallback 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.
- Since:
- 1.0
- Author:
- Karl Gustafsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final UnparsedZipEntryExtraFieldFactory INSTANCE
- Singleton instance that may be used instead of instantiating this class.
UnparsedZipEntryExtraFieldFactory
public UnparsedZipEntryExtraFieldFactory()
getCode
public UnsignedShort getCode()
- This factory does not have a code. It is used for all codes for which
there are no custom factory registered.
- Specified by:
getCode
in interface ZipEntryExtraFieldFactory
- Returns:
- The code.
create
public UnparsedZipEntryExtraField create(boolean inLocalHeader,
AbsoluteLocation loc,
UnixEntityType entityType,
Object entryToZip,
ZipEntrySettings effectiveSettings)
- Description copied from interface:
ZipEntryExtraFieldFactory
- Create a new
ZipEntryExtraField
object based on the supplied
information about the entity to Zip.
- Specified by:
create
in interface ZipEntryExtraFieldFactory
- Parameters:
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.
- Returns:
- A Zip entry extra field.