org.codehaus.plexus.components.io.attributes
Class PlexusIoResourceAttributeUtils
java.lang.Object
org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils
public final class PlexusIoResourceAttributeUtils
- extends Object
Method Summary |
static PlexusIoResourceAttributes |
getFileAttributes(File file)
|
static PlexusIoResourceAttributes |
getFileAttributes(File file,
org.codehaus.plexus.logging.Logger logger)
|
static PlexusIoResourceAttributes |
getFileAttributes(File file,
org.codehaus.plexus.logging.Logger logger,
int logLevel)
|
static Map |
getFileAttributesByPath(File dir)
|
static Map |
getFileAttributesByPath(File dir,
org.codehaus.plexus.logging.Logger logger)
|
static Map |
getFileAttributesByPath(File dir,
org.codehaus.plexus.logging.Logger logger,
int logLevel)
|
static Map<String,PlexusIoResourceAttributes> |
getFileAttributesByPath(File dir,
org.codehaus.plexus.logging.Logger logger,
int logLevel,
boolean recursive,
boolean includeNumericUserId)
|
static Map<String,PlexusIoResourceAttributes> |
getFileAttributesByPathJava7(File dir,
boolean recursive)
|
static boolean |
isGroupExecutableInOctal(int mode)
|
static boolean |
isGroupReadableInOctal(int mode)
|
static boolean |
isGroupWritableInOctal(int mode)
|
static boolean |
isOctalModeEnabled(int mode,
int targetMode)
|
static boolean |
isOwnerExecutableInOctal(int mode)
|
static boolean |
isOwnerReadableInOctal(int mode)
|
static boolean |
isOwnerWritableInOctal(int mode)
|
static boolean |
isWorldExecutableInOctal(int mode)
|
static boolean |
isWorldReadableInOctal(int mode)
|
static boolean |
isWorldWritableInOctal(int mode)
|
static PlexusIoResourceAttributes |
mergeAttributes(PlexusIoResourceAttributes override,
PlexusIoResourceAttributes base,
PlexusIoResourceAttributes def)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(File file)
throws IOException
- Throws:
IOException
getFileAttributes
public static PlexusIoResourceAttributes getFileAttributes(File file,
org.codehaus.plexus.logging.Logger logger)
throws IOException
- Throws:
IOException
getFileAttributes
public static PlexusIoResourceAttributes getFileAttributes(File file,
org.codehaus.plexus.logging.Logger logger,
int logLevel)
throws IOException
- Throws:
IOException
getFileAttributesByPath
public static Map getFileAttributesByPath(File dir)
throws IOException
- Throws:
IOException
getFileAttributesByPath
public static Map getFileAttributesByPath(File dir,
org.codehaus.plexus.logging.Logger logger)
throws IOException
- Throws:
IOException
getFileAttributesByPath
public static Map getFileAttributesByPath(File dir,
org.codehaus.plexus.logging.Logger logger,
int logLevel)
throws IOException
- Throws:
IOException
getFileAttributesByPath
public static Map<String,PlexusIoResourceAttributes> getFileAttributesByPath(File dir,
org.codehaus.plexus.logging.Logger logger,
int logLevel,
boolean recursive,
boolean includeNumericUserId)
throws IOException
- Throws:
IOException
getFileAttributesByPathJava7
public static Map<String,PlexusIoResourceAttributes> getFileAttributesByPathJava7(File dir,
boolean recursive)
throws IOException
- Throws:
IOException
Copyright © 2001-2011 Codehaus. All Rights Reserved.