Class PlexusIoResourceAttributeUtils
- java.lang.Object
-
- org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils
-
public final class PlexusIoResourceAttributeUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlexusIoResourceAttributesgetFileAttributes(java.io.File file)static PlexusIoResourceAttributesgetFileAttributes(java.io.File file, boolean followLinks)static java.util.Map<java.lang.String,PlexusIoResourceAttributes>getFileAttributesByPath(java.io.File dir)static java.util.Map<java.lang.String,PlexusIoResourceAttributes>getFileAttributesByPath(java.io.File dir, boolean recursive)static java.util.Map<java.lang.String,PlexusIoResourceAttributes>getFileAttributesByPath(java.io.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 Detail
-
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
public static PlexusIoResourceAttributes getFileAttributes(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
getFileAttributes
public static PlexusIoResourceAttributes getFileAttributes(java.io.File file, boolean followLinks) throws java.io.IOException
- Throws:
java.io.IOException
-
getFileAttributesByPath
public static java.util.Map<java.lang.String,PlexusIoResourceAttributes> getFileAttributesByPath(java.io.File dir) throws java.io.IOException
- Throws:
java.io.IOException
-
getFileAttributesByPath
@Nonnull public static java.util.Map<java.lang.String,PlexusIoResourceAttributes> getFileAttributesByPath(@Nonnull java.io.File dir, boolean recursive) throws java.io.IOException
- Throws:
java.io.IOException
-
getFileAttributesByPath
@Nonnull public static java.util.Map<java.lang.String,PlexusIoResourceAttributes> getFileAttributesByPath(@Nonnull java.io.File dir, boolean recursive, boolean followLinks) throws java.io.IOException
- Throws:
java.io.IOException
-
-