Class Java7Support

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

@Deprecated public class Java7Support extends Object
Deprecated.
no longer needed, prefer to use Files methods directly.
Java7 feature detection
Author:
Kristian Rosenvold
  • Constructor Details

    • Java7Support

      public Java7Support()
      Deprecated.
  • Method Details

    • isSymLink

      public static boolean isSymLink(@Nonnull File file)
      Deprecated.
      Parameters:
      file - The file to check for being a symbolic link.
      Returns:
      true if the file is a symlink false otherwise.
    • readSymbolicLink

      @Nonnull public static File readSymbolicLink(@Nonnull File symlink) throws IOException
      Deprecated.
      Parameters:
      symlink - The sym link.
      Returns:
      The file.
      Throws:
      IOException - in case of error.
    • exists

      public static boolean exists(@Nonnull File file) throws IOException
      Deprecated.
      Parameters:
      file - The file to check.
      Returns:
      true if exist false otherwise.
      Throws:
      IOException - in case of failure.
    • createSymbolicLink

      @Nonnull public static File createSymbolicLink(@Nonnull File symlink, @Nonnull File target) throws IOException
      Deprecated.
      Parameters:
      symlink - The link name.
      target - The target.
      Returns:
      The linked file.
      Throws:
      IOException - in case of an error.
    • delete

      public static void delete(@Nonnull File file) throws IOException
      Deprecated.
      Performs a nio delete
      Parameters:
      file - the file to delete
      Throws:
      IOException - in case of error.
    • isJava7

      public static boolean isJava7()
      Deprecated.
      Returns:
      true in case of Java 7.
    • isAtLeastJava7

      public static boolean isAtLeastJava7()
      Deprecated.
      Returns:
      true in case of Java7 or greater.