Class UnixAttributeProvider
java.lang.Object
com.google.common.jimfs.AttributeProvider
com.google.common.jimfs.UnixAttributeProvider
Attribute provider that provides the "unix" attribute view.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.common.collect.ImmutableSet<String> private final ConcurrentMap<Object, Integer> private static final com.google.common.collect.ImmutableSet<String> private final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<String> Returns the set of attributes that are always available from this provider.@Nullable ObjectReturns the value of the given attribute in the given file or null if the attribute is not supported by this provider.private IntegergetUniqueId(Object object) Returns an ID that is guaranteed to be the same for any invocation with equal objects.com.google.common.collect.ImmutableSet<String> inherits()Returns the names of other providers that this provider inherits attributes from.name()Returns the view name that's used to get attributes from this provider.voidSets the value of the given attribute in the given file object.private static inttoMode(Set<PosixFilePermission> permissions) view(FileLookup lookup, com.google.common.collect.ImmutableMap<String, FileAttributeView> inheritedViews) Returns a view of the file located by the given lookup callback.viewType()Returns the type of the view interface that this provider supports.Methods inherited from class AttributeProvider
attributes, attributesType, checkNotCreate, checkType, defaultValues, invalidType, readAttributes, supports, unsettable
-
Field Details
-
ATTRIBUTES
-
INHERITED_VIEWS
-
uidGenerator
-
idCache
-
-
Constructor Details
-
UnixAttributeProvider
UnixAttributeProvider()
-
-
Method Details
-
name
Description copied from class:AttributeProviderReturns the view name that's used to get attributes from this provider.- Specified by:
namein classAttributeProvider
-
inherits
Description copied from class:AttributeProviderReturns the names of other providers that this provider inherits attributes from.- Overrides:
inheritsin classAttributeProvider
-
fixedAttributes
Description copied from class:AttributeProviderReturns the set of attributes that are always available from this provider.- Specified by:
fixedAttributesin classAttributeProvider
-
viewType
Description copied from class:AttributeProviderReturns the type of the view interface that this provider supports.- Specified by:
viewTypein classAttributeProvider
-
view
public UnixFileAttributeView view(FileLookup lookup, com.google.common.collect.ImmutableMap<String, FileAttributeView> inheritedViews) Description copied from class:AttributeProviderReturns a view of the file located by the given lookup callback. The given map contains the views inherited by this view.- Specified by:
viewin classAttributeProvider
-
getUniqueId
-
get
Description copied from class:AttributeProviderReturns the value of the given attribute in the given file or null if the attribute is not supported by this provider.- Specified by:
getin classAttributeProvider
-
set
Description copied from class:AttributeProviderSets the value of the given attribute in the given file object. Thecreateparameter indicates whether or not the value is being set upon creation of a new file via a user-providedFileAttribute.- Specified by:
setin classAttributeProvider
-
toMode
-