Package aist.science.aistcv.helper
Class TemporaryDirectory
- java.lang.Object
-
- aist.science.aistcv.helper.TemporaryDirectory
-
public class TemporaryDirectory extends Object
Helper class for temp folder
Modified from OpenPnP OpenCV
- Author:
- Christoph Praschl, Jason von Nieda, adambenhamo, sirrrich, phrack
-
-
Constructor Summary
Constructors Constructor Description TemporaryDirectory()
Creates a temporary directory to which the binaries should be saved
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
deletes the temp folder and its contentTemporaryDirectory
deleteOldInstancesOnStart()
Sets flag that old instances of binaries should be deleted before creating new copiesPath
getPath()
Gets the path to the temp folderTemporaryDirectory
markDeleteOnExit()
Sets flag that the copied library should be deleted after runtime shutdown
-
-
-
Method Detail
-
deleteOldInstancesOnStart
public TemporaryDirectory deleteOldInstancesOnStart()
Sets flag that old instances of binaries should be deleted before creating new copies- Returns:
- this
-
markDeleteOnExit
public TemporaryDirectory markDeleteOnExit()
Sets flag that the copied library should be deleted after runtime shutdown- Returns:
- this
-
getPath
public Path getPath()
Gets the path to the temp folder- Returns:
- temp folder containing the copied binaries
-
delete
public void delete()
deletes the temp folder and its content
-
-