Class Java7Support


  • @Deprecated
    public class Java7Support
    extends java.lang.Object
    Deprecated.
    no longer needed, prefer to use Files methods directly.
    Java7 feature detection
    • Constructor Summary

      Constructors 
      Constructor Description
      Java7Support()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.io.File createSymbolicLink​(java.io.File symlink, java.io.File target)
      Deprecated.
       
      static void delete​(java.io.File file)
      Deprecated.
      Performs a nio delete
      static boolean exists​(java.io.File file)
      Deprecated.
       
      static boolean isAtLeastJava7()
      Deprecated.
       
      static boolean isJava7()
      Deprecated.
       
      static boolean isSymLink​(java.io.File file)
      Deprecated.
       
      static java.io.File readSymbolicLink​(java.io.File symlink)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Java7Support

        public Java7Support()
        Deprecated.
    • Method Detail

      • isSymLink

        public static boolean isSymLink​(@Nonnull
                                        java.io.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 java.io.File readSymbolicLink​(@Nonnull
                                                    java.io.File symlink)
                                             throws java.io.IOException
        Deprecated.
        Parameters:
        symlink - The sym link.
        Returns:
        The file.
        Throws:
        java.io.IOException - in case of error.
      • exists

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

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

        public static void delete​(@Nonnull
                                  java.io.File file)
                           throws java.io.IOException
        Deprecated.
        Performs a nio delete
        Parameters:
        file - the file to delete
        Throws:
        java.io.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.