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

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

public class Java7Reflector
extends Object

This class is used *only* because we need to build plexus-io with java 1.5/1.6. Once we require 1.7 to build plexus-io the reflection can be removed.

Author:
Kristian Rosenvold

Field Summary
static Method pathMethod
           
static Class posixFileAttributes
           
static Method readAttributes
           
 
Constructor Summary
Java7Reflector()
           
 
Method Summary
static String getOwnerGroupName(Object posixFileAttributes)
           
static String getOwnerUserName(Object posixFileAttributes)
           
static String getPermissions(Object posixFileAttributes)
           
static Object getPosixFileAttributes(File file)
           
static boolean isJava7()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pathMethod

public static final Method pathMethod

readAttributes

public static final Method readAttributes

posixFileAttributes

public static final Class posixFileAttributes
Constructor Detail

Java7Reflector

public Java7Reflector()
Method Detail

getPosixFileAttributes

public static Object getPosixFileAttributes(File file)
                                     throws IOException
Throws:
IOException

getOwnerUserName

public static String getOwnerUserName(Object posixFileAttributes)

getOwnerGroupName

public static String getOwnerGroupName(Object posixFileAttributes)

getPermissions

public static String getPermissions(Object posixFileAttributes)

isJava7

public static boolean isJava7()


Copyright © 2001-2012 Codehaus. All Rights Reserved.