Class TemporaryDirectory

java.lang.Object
org.verifyica.api.TemporaryDirectory
All Implemented Interfaces:
AutoCloseable

public class TemporaryDirectory extends Object implements AutoCloseable
Class to implement TemporaryDirectory
  • Constructor Details

    • TemporaryDirectory

      public TemporaryDirectory() throws IOException
      Constructor
      Throws:
      IOException - IOException if the temporary directory can't be created
    • TemporaryDirectory

      public TemporaryDirectory(String prefix) throws IOException
      Constructor
      Parameters:
      prefix - prefix
      Throws:
      IOException - IOException if the temporary directory can't be created
  • Method Details

    • path

      public Path path()
      Get the temporary directory Path
      Returns:
      the temporary directory Path
    • getPath

      public Path getPath()
      Get the temporary directory Path
      Returns:
      the temporary directory Path
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException