Class TempFile

    • Constructor Detail

      • TempFile

        public TempFile​(File file)
        Creates a new temp file. The given file will be deleted when this instance if closed.
        Parameters:
        file - File to wrap.
      • TempFile

        public TempFile​(Path file)
        Creates a new temp file. The given file will be deleted when this instance if closed.
        Parameters:
        file - File to wrap.
    • Method Detail

      • getFile

        public File getFile()
        Returns:
        The wrapped file.
      • getPath

        public Path getPath()
        Returns:
        The wrapped file.