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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidstatic Filestatic FilecreateSymbolicLink(File symlink, File target) static booleandeleteIfExists(File file) static longgetLastModified(File file) static booleanisSymbolicLink(File file) static FilereadSymbolicLink(File symlink) Reads the target of the symbolic link
- 
Constructor Details- 
NioFilespublic NioFiles()
 
- 
- 
Method Details- 
isSymbolicLink
- 
chmod- Throws:
- IOException
 
- 
getLastModified- Throws:
- IOException
 
- 
readSymbolicLinkReads 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
 
 
-