* better error message for MacOS where UserDefinedFileAttributeView is not supported

This commit is contained in:
Reinhard Pointner 2014-04-17 15:32:24 +00:00
parent 03ce43e6f9
commit 1f055065d6
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ public class MetaAttributeView extends AbstractMap<String, String> {
}
attributeView = Files.getFileAttributeView(path, UserDefinedFileAttributeView.class);
if (attributeView == null) {
throw new IOException("UserDefinedFileAttributeView is not supported");
}
encoding = Charset.forName("UTF-8");
}