Files
methods directly.@Deprecated
public class Java7Support
extends java.lang.Object
Constructor and Description |
---|
Java7Support()
Deprecated.
|
Modifier and Type | Method and 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.
|
public static boolean isSymLink(@Nonnull java.io.File file)
file
- The file to check for being a symbolic link.@Nonnull public static java.io.File readSymbolicLink(@Nonnull java.io.File symlink) throws java.io.IOException
symlink
- The sym link.java.io.IOException
- in case of error.public static boolean exists(@Nonnull java.io.File file) throws java.io.IOException
file
- The file to check.java.io.IOException
- in case of failure.@Nonnull public static java.io.File createSymbolicLink(@Nonnull java.io.File symlink, @Nonnull java.io.File target) throws java.io.IOException
symlink
- The link name.target
- The target.java.io.IOException
- in case of an error.public static void delete(@Nonnull java.io.File file) throws java.io.IOException
file
- the file to deletejava.io.IOException
- in case of error.public static boolean isJava7()
public static boolean isAtLeastJava7()