org.codehaus.plexus.components.io.attributes
Class PlexusIoResourceAttributeUtils

java.lang.Object
  extended by org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils

public final class PlexusIoResourceAttributeUtils
extends java.lang.Object


Method Summary
static PlexusIoResourceAttributes getFileAttributes(java.io.File file)
           
static PlexusIoResourceAttributes getFileAttributes(java.io.File file, org.codehaus.plexus.logging.Logger logger)
           
static PlexusIoResourceAttributes getFileAttributes(java.io.File file, org.codehaus.plexus.logging.Logger logger, int logLevel)
           
static java.util.Map getFileAttributesByPath(java.io.File dir)
           
static java.util.Map getFileAttributesByPath(java.io.File dir, org.codehaus.plexus.logging.Logger logger)
           
static java.util.Map getFileAttributesByPath(java.io.File dir, org.codehaus.plexus.logging.Logger logger, int logLevel)
           
static java.util.Map<java.lang.String,PlexusIoResourceAttributes> getFileAttributesByPath(java.io.File dir, org.codehaus.plexus.logging.Logger logger, int logLevel, boolean recursive, boolean includeNumericUserId)
           
static java.util.Map<java.lang.String,PlexusIoResourceAttributes> getFileAttributesByPathJava7(java.io.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
 

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,
                                                           org.codehaus.plexus.logging.Logger logger)
                                                    throws java.io.IOException
Throws:
java.io.IOException

getFileAttributes

public static PlexusIoResourceAttributes getFileAttributes(java.io.File file,
                                                           org.codehaus.plexus.logging.Logger logger,
                                                           int logLevel)
                                                    throws java.io.IOException
Throws:
java.io.IOException

getFileAttributesByPath

public static java.util.Map getFileAttributesByPath(java.io.File dir)
                                             throws java.io.IOException
Throws:
java.io.IOException

getFileAttributesByPath

public static java.util.Map getFileAttributesByPath(java.io.File dir,
                                                    org.codehaus.plexus.logging.Logger logger)
                                             throws java.io.IOException
Throws:
java.io.IOException

getFileAttributesByPath

public static java.util.Map getFileAttributesByPath(java.io.File dir,
                                                    org.codehaus.plexus.logging.Logger logger,
                                                    int logLevel)
                                             throws java.io.IOException
Throws:
java.io.IOException

getFileAttributesByPath

public static java.util.Map<java.lang.String,PlexusIoResourceAttributes> getFileAttributesByPath(java.io.File dir,
                                                                                                 org.codehaus.plexus.logging.Logger logger,
                                                                                                 int logLevel,
                                                                                                 boolean recursive,
                                                                                                 boolean includeNumericUserId)
                                                                                          throws java.io.IOException
Throws:
java.io.IOException

getFileAttributesByPathJava7

public static java.util.Map<java.lang.String,PlexusIoResourceAttributes> getFileAttributesByPathJava7(java.io.File dir,
                                                                                                      boolean recursive)
                                                                                               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2011 Codehaus. All Rights Reserved.