Package loci.poi.util

Class TempFile

java.lang.Object
loci.poi.util.TempFile

public class TempFile extends Object
Interface for creating temporary files. Collects them all into one directory.
Author:
Glen Stampoultzis
  • Constructor Details

    • TempFile

      public TempFile()
  • Method Details

    • createTempFile

      public static File createTempFile(String prefix, String suffix) throws IOException
      Creates a temporary file. Files are collected into one directory and by default are deleted on exit from the VM. Files can be kept by defining the system property poi.keep.tmp.files.

      Dont forget to close all files or it might not be possible to delete them.

      Throws:
      IOException