Class AttributeUtils
java.lang.Object
org.codehaus.plexus.components.io.attributes.AttributeUtils
- Author:
- Kristian Rosenvold
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic BasicFileAttributesgetFileAttributes(File file) static BasicFileAttributesgetFileAttributes(Path path) static FileOwnerAttributeViewgetFileOwnershipInfo(File file) static longgetLastModified(File file) static Set<PosixFilePermission> getPermissions(int mode) static PosixFileAttributesgetPosixFileAttributes(File file) static boolean
-
Constructor Details
-
AttributeUtils
public AttributeUtils()
-
-
Method Details
-
getLastModified
-
chmod
- Throws:
IOException
-
getPermissions
-
getPosixFileAttributes
@Nonnull public static PosixFileAttributes getPosixFileAttributes(@Nonnull File file) throws IOException - Throws:
IOException
-
getFileAttributes
- Throws:
IOException
-
getFileAttributes
- Throws:
IOException
-
isUnix
-
getFileOwnershipInfo
@Nullable public static FileOwnerAttributeView getFileOwnershipInfo(@Nonnull File file) throws IOException - Throws:
IOException
-