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

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

public class Java7Reflector
extends java.lang.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 java.lang.reflect.Method pathMethod
           
static java.lang.Class posixFileAttributes
           
static java.lang.reflect.Method readAttributes
           
 
Constructor Summary
Java7Reflector()
           
 
Method Summary
static java.lang.String getOwnerGroupName(java.lang.Object posixFileAttributes)
           
static java.lang.String getOwnerUserName(java.lang.Object posixFileAttributes)
           
static java.lang.String getPermissions(java.lang.Object posixFileAttributes)
           
static java.lang.Object getPosixFileAttributes(java.io.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 java.lang.reflect.Method pathMethod

readAttributes

public static final java.lang.reflect.Method readAttributes

posixFileAttributes

public static final java.lang.Class posixFileAttributes
Constructor Detail

Java7Reflector

public Java7Reflector()
Method Detail

getPosixFileAttributes

public static java.lang.Object getPosixFileAttributes(java.io.File file)
                                               throws java.io.IOException
Throws:
java.io.IOException

getOwnerUserName

public static java.lang.String getOwnerUserName(java.lang.Object posixFileAttributes)

getOwnerGroupName

public static java.lang.String getOwnerGroupName(java.lang.Object posixFileAttributes)

getPermissions

public static java.lang.String getPermissions(java.lang.Object posixFileAttributes)

isJava7

public static boolean isJava7()


Copyright © 2001-2011 Codehaus. All Rights Reserved.