org.at4j.zip.extattrs
Class NtfsExternalFileAttributesFactory

java.lang.Object
  extended by org.at4j.zip.extattrs.NtfsExternalFileAttributesFactory
All Implemented Interfaces:
ZipExternalFileAttributesFactory

public class NtfsExternalFileAttributesFactory
extends Object
implements ZipExternalFileAttributesFactory

This factory is used for creating NtfsExternalFileAttributes objects.

Since:
1.0
Author:
Karl Gustafsson

Field Summary
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 Summary
NtfsExternalFileAttributesFactory(NtfsExternalFileAttributes fileAttrs, NtfsExternalFileAttributes dirAttrs)
          Create a new factory.
 
Method Summary
 NtfsExternalFileAttributes create(UnixEntityType entityType, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INSTANCE

public static final 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 Detail

NtfsExternalFileAttributesFactory

public NtfsExternalFileAttributesFactory(NtfsExternalFileAttributes fileAttrs,
                                         NtfsExternalFileAttributes dirAttrs)
Create a new factory.

Parameters:
fileAttrs - The attributes that will be used for files.
dirAttrs - The attributes that will be used for directories.
Method Detail

getVersionMadeBy

public ZipVersionMadeBy getVersionMadeBy()
Description copied from interface: ZipExternalFileAttributesFactory
Get the Zip version that is used to make the kind of external file attributes that are created by this factory.

Specified by:
getVersionMadeBy in interface ZipExternalFileAttributesFactory
Returns:
The version.

create

public NtfsExternalFileAttributes create(UnixEntityType entityType,
                                         AbsoluteLocation loc,
                                         Object entryToZip)
Description copied from interface: ZipExternalFileAttributesFactory
Create external file attributes for the entry to Zip.

Specified by:
create in interface ZipExternalFileAttributesFactory
Parameters:
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.
Returns:
External file attributes for the Zip entry.