public class NtfsExternalFileAttributesFactory extends Object implements ZipExternalFileAttributesFactory
NtfsExternalFileAttributes objects.| Modifier and Type | Field and Description |
|---|---|
static NtfsExternalFileAttributesFactory |
DEFAULT_INSTANCE
This instance has the default settings for file and directory attributes
(
NtfsExternalFileAttributes.DEFAULT_FILE_ATTRIBUTES and
NtfsExternalFileAttributes.DEFAULT_DIRECTORY_ATTRIBUTES,
respectively). |
| Constructor and Description |
|---|
NtfsExternalFileAttributesFactory(NtfsExternalFileAttributes fileAttrs,
NtfsExternalFileAttributes dirAttrs)
Create a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
NtfsExternalFileAttributes |
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 NtfsExternalFileAttributesFactory DEFAULT_INSTANCE
NtfsExternalFileAttributes.DEFAULT_FILE_ATTRIBUTES and
NtfsExternalFileAttributes.DEFAULT_DIRECTORY_ATTRIBUTES,
respectively).public NtfsExternalFileAttributesFactory(NtfsExternalFileAttributes fileAttrs, NtfsExternalFileAttributes dirAttrs)
fileAttrs - The attributes that will be used for files.dirAttrs - The attributes that will be used for directories.public ZipVersionMadeBy getVersionMadeBy()
ZipExternalFileAttributesFactorygetVersionMadeBy in interface ZipExternalFileAttributesFactorypublic NtfsExternalFileAttributes create(UnixEntityType entityType, org.entityfs.el.AbsoluteLocation loc, Object entryToZip)
ZipExternalFileAttributesFactorycreate in interface ZipExternalFileAttributesFactoryentityType - 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.