Package org.codehaus.plexus.util
Class NioFiles
java.lang.Object
org.codehaus.plexus.util.NioFiles
Encapsulates use of java7 features, exposing mostly backward compatible types
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static File
static File
createSymbolicLink
(File symlink, File target) static boolean
deleteIfExists
(File file) static long
getLastModified
(File file) static boolean
isSymbolicLink
(File file) static File
readSymbolicLink
(File symlink) Reads the target of the symbolic link
-
Constructor Details
-
NioFiles
public NioFiles()
-
-
Method Details
-
isSymbolicLink
-
chmod
- Throws:
IOException
-
getLastModified
- Throws:
IOException
-
readSymbolicLink
Reads the target of the symbolic link- Parameters:
symlink
- A file that is a symlink- Returns:
- A file that is the target of the symlink
- Throws:
IOException
- io issue
-
createSymbolicLink
- Throws:
IOException
-
deleteIfExists
- Throws:
IOException
-
copy
- Throws:
IOException
-