Package loci.poi.util

Class TempFile


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

      Constructors 
      Constructor Description
      TempFile()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File createTempFile​(java.lang.String prefix, java.lang.String suffix)
      Creates a temporary file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TempFile

        public TempFile()
    • Method Detail

      • createTempFile

        public static java.io.File createTempFile​(java.lang.String prefix,
                                                  java.lang.String suffix)
                                           throws java.io.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:
        java.io.IOException