Interface TempFileCreationStrategy

All Known Implementing Classes:
TempFile.DefaultTempFileCreationStrategy

public interface TempFileCreationStrategy
Interface used by the TempFile utility class to create temporary files.
  • Method Summary

    Modifier and Type
    Method
    Description
    createTempFile(String prefix, String suffix)
    Creates a new and empty temporary file.
  • Method Details

    • createTempFile

      File createTempFile(String prefix, String suffix) throws IOException
      Creates a new and empty temporary file.
      Parameters:
      prefix - The prefix to be used to generate the name of the temporary file.
      suffix - The suffix to be used to generate the name of the temporary file.
      Returns:
      The path to the newly created and empty temporary file.
      Throws:
      IOException - If no temporary file could be created.