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