Package org.antublue.test.engine.extras
Class Directory
java.lang.Object
org.antublue.test.engine.extras.Directory
- All Implemented Interfaces:
AutoCloseable
Class to implement a Directory class
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Method to close (delete) the directorystatic Directorycreate(String path, Directory.PathType pathType) Method to create a temporary directorystatic DirectorycreateAbsolute(String path) Method to create an absolute directorystatic DirectorycreateRelative(String path) Method to create a directory relative to "java.tmpdir"voiddelete()Method to delete the directorybooleangetFile()Method to get a FileinthashCode()toString()
-
Method Details
-
getFile
Method to get a File- Returns:
- a File
-
delete
public void delete()Method to delete the directory -
close
public void close()Method to close (delete) the directory- Specified by:
closein interfaceAutoCloseable
-
createRelative
Method to create a directory relative to "java.tmpdir"- Parameters:
path- path- Returns:
- a TempDir
- Throws:
IOException- if the directory can't be created
-
createAbsolute
Method to create an absolute directory- Parameters:
path- path- Returns:
- a TempDir
- Throws:
IOException- if the directory can't be created
-
create
Method to create a temporary directory- Parameters:
path- pathpathType- pathType- Returns:
- a TempDir
- Throws:
IOException- if the directory can't be created
-
toString
-
equals
-
hashCode
public int hashCode()
-