Package loci.poi.util

Class TempFile


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

      • TempFile

        public TempFile()
    • Method Detail

      • 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