public final class DynamicAttributeAccessor extends Object
AnnotatedFileAttributeView
s to provide dynamic
access to file attributes.Constructor and Description |
---|
DynamicAttributeAccessor(AnnotatedFileAttributeView view) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
readAllAttributes() |
Map<String,Object> |
readAttributes(Set<String> names) |
Map<String,Object> |
readAttributes(String attributes) |
void |
setAttribute(String name,
Object value) |
public DynamicAttributeAccessor(AnnotatedFileAttributeView view)
public Map<String,Object> readAttributes(String attributes) throws IOException
IOException
public Map<String,Object> readAllAttributes() throws IOException
IOException
public Map<String,Object> readAttributes(Set<String> names) throws IOException
IOException
public void setAttribute(String name, Object value) throws IOException
IOException