Class PlexusIoResourceAttributeUtils
java.lang.Object
org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlexusIoResourceAttributesgetFileAttributes(File file) static PlexusIoResourceAttributesgetFileAttributes(File file, boolean followLinks) static Map<String, PlexusIoResourceAttributes> static Map<String, PlexusIoResourceAttributes> getFileAttributesByPath(File dir, boolean recursive) static Map<String, PlexusIoResourceAttributes> getFileAttributesByPath(File dir, boolean recursive, boolean followLinks) static booleanisGroupExecutableInOctal(int mode) static booleanisGroupReadableInOctal(int mode) static booleanisGroupWritableInOctal(int mode) static booleanisOctalModeEnabled(int mode, int targetMode) static booleanisOwnerExecutableInOctal(int mode) static booleanisOwnerReadableInOctal(int mode) static booleanisOwnerWritableInOctal(int mode) static booleanisWorldExecutableInOctal(int mode) static booleanisWorldReadableInOctal(int mode) static booleanisWorldWritableInOctal(int mode) static PlexusIoResourceAttributesmergeAttributes(PlexusIoResourceAttributes override, PlexusIoResourceAttributes base, PlexusIoResourceAttributes def)
-
Method Details
-
mergeAttributes
public static PlexusIoResourceAttributes mergeAttributes(PlexusIoResourceAttributes override, PlexusIoResourceAttributes base, PlexusIoResourceAttributes def) -
isGroupExecutableInOctal
public static boolean isGroupExecutableInOctal(int mode) -
isGroupReadableInOctal
public static boolean isGroupReadableInOctal(int mode) -
isGroupWritableInOctal
public static boolean isGroupWritableInOctal(int mode) -
isOwnerExecutableInOctal
public static boolean isOwnerExecutableInOctal(int mode) -
isOwnerReadableInOctal
public static boolean isOwnerReadableInOctal(int mode) -
isOwnerWritableInOctal
public static boolean isOwnerWritableInOctal(int mode) -
isWorldExecutableInOctal
public static boolean isWorldExecutableInOctal(int mode) -
isWorldReadableInOctal
public static boolean isWorldReadableInOctal(int mode) -
isWorldWritableInOctal
public static boolean isWorldWritableInOctal(int mode) -
isOctalModeEnabled
public static boolean isOctalModeEnabled(int mode, int targetMode) -
getFileAttributes
- Throws:
IOException
-
getFileAttributes
public static PlexusIoResourceAttributes getFileAttributes(File file, boolean followLinks) throws IOException - Throws:
IOException
-
getFileAttributesByPath
public static Map<String, PlexusIoResourceAttributes> getFileAttributesByPath(File dir) throws IOException - Throws:
IOException
-
getFileAttributesByPath
@Nonnull public static Map<String, PlexusIoResourceAttributes> getFileAttributesByPath(@Nonnull File dir, boolean recursive) throws IOException - Throws:
IOException
-
getFileAttributesByPath
@Nonnull public static Map<String, PlexusIoResourceAttributes> getFileAttributesByPath(@Nonnull File dir, boolean recursive, boolean followLinks) throws IOException - Throws:
IOException
-