public abstract class AttributesUtils extends Object
| Constructor and Description |
|---|
AttributesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
fileAttributeToMap(BasicFileAttributes attr)
Given a BasicFileAttributes not null then return a Map
with the keys as the fields of the BasicFileAttributes or PosixFileAttributes and the values
with the content of the fields
|
static Map<String,Object> |
fileAttributeToMap(BasicFileAttributes attr,
String[] filters)
transform the java.nio.file.attribute.BasicFileAttributes to Map filtering by the keys
given in the filters param
|
public static Map<String,Object> fileAttributeToMap(BasicFileAttributes attr)
attr - BasicFileAttributespublic static Map<String,Object> fileAttributeToMap(BasicFileAttributes attr, String[] filters)
attr - BasicFileAttributes not null to tranform to mapfilters - String[] filtersCopyright © 2018. All rights reserved.