org.entityfs.cap.entityattrs.ntfs.metadata
Class DefaultNtfsAttributesFactory
java.lang.Object
org.entityfs.cap.entityattrs.ntfs.metadata.DefaultNtfsAttributesFactory
- All Implemented Interfaces:
- ObjectFactory<NtfsAttributes>
public class DefaultNtfsAttributesFactory
- extends Object
- implements ObjectFactory<NtfsAttributes>
This is the default implementation of an ObjectFactory
for
NtfsAttributes
. It uses default values for all attribute properties.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
MetadataNtfsAttributesCapabilityProvider
- In_jar:
- entityfs-entity_attributes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNtfsAttributesFactory
public DefaultNtfsAttributesFactory(int uid,
int gid,
int ntfa,
UnixEntityMode uem)
- Create a new attributes factory.
- Parameters:
uid
- The UID given to all created attributes.gid
- The GID given to all created attributes.ntfa
- The integer representation of NT file attributes given to all
created attributes. See NtFileAttributes
.uem
- The integer representation of the Unix entity mode given to
all created attributes. See UnixEntityMode
.
create
public NtfsAttributes create()
- Description copied from interface:
ObjectFactory
- Create a new instance of the object.
- Specified by:
create
in interface ObjectFactory<NtfsAttributes>
- Returns:
- The new instance.