/** * Returns an attribute view of the given type for the given file lookup callback, or * {@code null} if the view type is not supported. */ @Nullable <V extends FileAttributeView> V getFileAttributeView(FileLookup lookup, Class<V> type) { state.checkOpen(); return attributes.getFileAttributeView(lookup, type); }
private void createInheritedViews( FileLookup lookup, AttributeProvider provider, Map<String, FileAttributeView> inheritedViews) { for (String inherited : provider.inherits()) { if (!inheritedViews.containsKey(inherited)) { AttributeProvider inheritedProvider = providersByName.get(inherited); FileAttributeView inheritedView = getFileAttributeView(lookup, inheritedProvider.viewType(), inheritedViews); inheritedViews.put(inherited, inheritedView); } } }
/** * Returns an attribute view of the given type for the given file lookup callback, or * {@code null} if the view type is not supported. */ @Nullable <V extends FileAttributeView> V getFileAttributeView(FileLookup lookup, Class<V> type) { state.checkOpen(); return attributes.getFileAttributeView(lookup, type); }
private void createInheritedViews( FileLookup lookup, AttributeProvider provider, Map<String, FileAttributeView> inheritedViews) { for (String inherited : provider.inherits()) { if (!inheritedViews.containsKey(inherited)) { AttributeProvider inheritedProvider = providersByName.get(inherited); FileAttributeView inheritedView = getFileAttributeView(lookup, inheritedProvider.viewType(), inheritedViews); inheritedViews.put(inherited, inheritedView); } } }