public class Java7Support extends Object
Constructor and Description |
---|
Java7Support() |
Modifier and Type | Method and Description |
---|---|
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) |
public static boolean isSymLink(@Nonnull File file)
file
- The file to check for being a symbolic link.@Nonnull public static File readSymbolicLink(@Nonnull File symlink) throws IOException
symlink
- The sym link.IOException
- in case of error.public static boolean exists(@Nonnull File file) throws IOException
file
- The file to check.IOException
- in case of failure.@Nonnull public static File createSymbolicLink(@Nonnull File symlink, @Nonnull File target) throws IOException
symlink
- The link name.target
- The target.IOException
- in case of an error.public static void delete(@Nonnull File file) throws IOException
file
- the file to deleteIOException
- in case of error.public static boolean isJava7()
public static boolean isAtLeastJava7()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.