|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.at4j.zip.extattrs.MsDosExternalFileAttributesFactory
public class MsDosExternalFileAttributesFactory
This factory is used to create MsDosExternalFileAttributes
objects.
MsDosExternalFileAttributes
Field Summary | |
---|---|
static MsDosExternalFileAttributesFactory |
DEFAULT_INSTANCE
A singleton instance that uses the default settings for file and directory entries ( MsDosExternalFileAttributes.DEFAULT_FILE_ATTRIBUTES and
MsDosExternalFileAttributes.DEFAULT_DIRECTORY_ATTRIBUTES ,
respectively). |
Constructor Summary | |
---|---|
MsDosExternalFileAttributesFactory(MsDosExternalFileAttributes fileAttributes,
MsDosExternalFileAttributes directoryAttributes)
Create a new factory. |
Method Summary | |
---|---|
MsDosExternalFileAttributes |
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 |
---|
public static final MsDosExternalFileAttributesFactory DEFAULT_INSTANCE
MsDosExternalFileAttributes.DEFAULT_FILE_ATTRIBUTES
and
MsDosExternalFileAttributes.DEFAULT_DIRECTORY_ATTRIBUTES
,
respectively).
Constructor Detail |
---|
public MsDosExternalFileAttributesFactory(MsDosExternalFileAttributes fileAttributes, MsDosExternalFileAttributes directoryAttributes)
fileAttributes
- The attributes for files.directoryAttributes
- The attributes for directories.Method Detail |
---|
public ZipVersionMadeBy getVersionMadeBy()
ZipExternalFileAttributesFactory
getVersionMadeBy
in interface ZipExternalFileAttributesFactory
public MsDosExternalFileAttributes create(UnixEntityType entityType, 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |