org.apache.maven.shared.utils.io
Class Java7Support

java.lang.Object
  extended by org.apache.maven.shared.utils.io.Java7Support

public class Java7Support
extends Object

Java7 feature detection

Author:
Kristian Rosenvold

Constructor Summary
Java7Support()
           
 
Method Summary
static File createSymbolicLink(File symlink, File target)
           
static void delete(File file)
          Performs a nio delete
static boolean exists(File file)
           
static boolean isAtLeastJava7()
           
static boolean isJava7()
           
static boolean isSymLink(File file)
           
static File readSymbolicLink(File symlink)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java7Support

public Java7Support()
Method Detail

isSymLink

public static boolean isSymLink(@Nonnull
                                File file)

readSymbolicLink

@Nonnull
public static File readSymbolicLink(@Nonnull
                                            File symlink)
                             throws IOException
Throws:
IOException

exists

public static boolean exists(@Nonnull
                             File file)
                      throws IOException
Throws:
IOException

createSymbolicLink

@Nonnull
public static File createSymbolicLink(@Nonnull
                                              File symlink,
                                              @Nonnull
                                              File target)
                               throws IOException
Throws:
IOException

delete

public static void delete(File file)
                   throws IOException
Performs a nio delete

Parameters:
file - the file to delete
Throws:
IOException

isJava7

public static boolean isJava7()

isAtLeastJava7

public static boolean isAtLeastJava7()


Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.