/** * Returns the base directory to be used for storing temporary files. * * @return the base directory, never <code>null</code> */ public static synchronized File getBaseDir() { if ( baseDir == null ) { init(); } return baseDir; } }
/** * Initializes the {@link TempFileManager} to use a random String for creating unique temporary file names. */ public static synchronized void init() { String contextId = UUID.randomUUID().toString(); init( contextId ); }