org.codehaus.plexus.components.io.attributes
Class Java7Reflector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pathMethod
public static final Method pathMethod
readAttributes
public static final Method readAttributes
posixFileAttributes
public static final Class posixFileAttributes
Java7Reflector
public Java7Reflector()
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.