public class UnixExternalFileAttributesFactory extends Object implements ZipExternalFileAttributesFactory
UnixExternalFileAttributes
instances.UnixExternalFileAttributes
Modifier and Type | Field and Description |
---|---|
static UnixExternalFileAttributesFactory |
DEFAULT_INSTANCE
This instance has the default settings for this factory (
UnixExternalFileAttributes.DEFAULT_FILE_ATTRIBUTES for files and
UnixExternalFileAttributes.DEFAULT_DIRECTORY_ATTRIBUTES for
directories). |
Constructor and Description |
---|
UnixExternalFileAttributesFactory(org.entityfs.entityattrs.unix.UnixEntityMode fileMode,
org.entityfs.entityattrs.unix.UnixEntityMode directoryMode)
Create a new factory instance.
|
Modifier and Type | Method and Description |
---|---|
UnixExternalFileAttributes |
create(UnixEntityType entityType,
org.entityfs.el.AbsoluteLocation loc,
Object entryToZip)
Create external file attributes for the entry to Zip.
|
ZipVersionMadeBy |
getVersionMadeBy()
Get the Zip version that is used to make the kind of external file
attributes that are created by this factory.
|
public static final UnixExternalFileAttributesFactory DEFAULT_INSTANCE
UnixExternalFileAttributes.DEFAULT_FILE_ATTRIBUTES
for files and
UnixExternalFileAttributes.DEFAULT_DIRECTORY_ATTRIBUTES
for
directories). It may be used instead of creating a new factory instance.public UnixExternalFileAttributesFactory(org.entityfs.entityattrs.unix.UnixEntityMode fileMode, org.entityfs.entityattrs.unix.UnixEntityMode directoryMode)
fileMode
- The entity mode to use for files.directoryMode
- The entity mode to use for directories.public ZipVersionMadeBy getVersionMadeBy()
ZipExternalFileAttributesFactory
getVersionMadeBy
in interface ZipExternalFileAttributesFactory
public UnixExternalFileAttributes create(UnixEntityType entityType, org.entityfs.el.AbsoluteLocation loc, Object entryToZip)
ZipExternalFileAttributesFactory
create
in interface ZipExternalFileAttributesFactory
entityType
- The type of the entry (file or directory).loc
- The absolute location of the entry in the Zip archive.entryToZip
- The entry to Zip. This may be a
ReadableFile
, a DirectoryView
,
a File
(directory) or an InputStream
. If
the object is ReadLockable
(ReadableFile
and DirectoryView
), it is locked for reading when
this method is called. If it is an input stream, this method may
not read any data from it.