Return to Snippet

Revision: 25855
at April 12, 2010 09:36 by alejandrosuch


Initial Code
private String getTmpFileName() {
		String tmpdir = System.getProperty(JAVA_IO_TMPDIR);
		String separador = System.getProperty(FILE_SEPARATOR);
		
		if(!tmpdir.endsWith(separador)){
			tmpdir+= separador;
		}
		
		return tmpdir+"tmp_"+UUIDGenFactory.getUUIDGen().nextUUID()+".tmp";
	}

Initial URL

                                

Initial Description

                                

Initial Title
Generate temporary filename (on system's temp path)

Initial Tags
file, java

Initial Language
Java