public class Java7AttributeUtils extends Object
Constructor and Description |
---|
Java7AttributeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
chmod(File file,
int mode) |
static java.nio.file.attribute.BasicFileAttributes |
getFileAttributes(File file) |
static java.nio.file.attribute.BasicFileAttributes |
getFileAttributes(java.nio.file.Path path) |
static java.nio.file.attribute.FileOwnerAttributeView |
getFileOwnershipInfo(File file) |
static long |
getLastModified(File file) |
static Set<java.nio.file.attribute.PosixFilePermission> |
getPermissions(int mode) |
static java.nio.file.attribute.PosixFileAttributes |
getPosixFileAttributes(File file) |
static boolean |
isUnix(java.nio.file.Path path) |
public static long getLastModified(@Nonnull File file)
public static void chmod(@Nonnull File file, int mode) throws IOException
IOException
@Nonnull public static Set<java.nio.file.attribute.PosixFilePermission> getPermissions(int mode)
@Nonnull public static java.nio.file.attribute.PosixFileAttributes getPosixFileAttributes(@Nonnull File file) throws IOException
IOException
@Nonnull public static java.nio.file.attribute.BasicFileAttributes getFileAttributes(@Nonnull File file) throws IOException
IOException
public static java.nio.file.attribute.BasicFileAttributes getFileAttributes(java.nio.file.Path path) throws IOException
IOException
public static boolean isUnix(java.nio.file.Path path)
@Nullable public static java.nio.file.attribute.FileOwnerAttributeView getFileOwnershipInfo(@Nonnull File file) throws IOException
IOException
Copyright © 2001-2017 Codehaus. All Rights Reserved.