123 |
* files created are guaranteed not to currently exist and the same file name |
* files created are guaranteed not to currently exist and the same file name |
124 |
* will never be used twice in the same virtual machine instance. The |
* will never be used twice in the same virtual machine instance. The |
125 |
* system temporary directory is determined by examinging the |
* system temporary directory is determined by examinging the |
126 |
* <code>java.tmpdir</code> system property. |
* <code>java.io.tmpdir</code> system property. |
127 |
* <p> |
* <p> |
128 |
* The <code>prefix</code> parameter is a sequence of at least three |
* The <code>prefix</code> parameter is a sequence of at least three |
129 |
* characters that are used as the start of the generated filename. The |
* characters that are used as the start of the generated filename. The |
160 |
* directory. The files created are guaranteed not to currently exist and the |
* directory. The files created are guaranteed not to currently exist and the |
161 |
* same file name will never be used twice in the same virtual machine instance. |
* same file name will never be used twice in the same virtual machine instance. |
162 |
* The system temporary directory is determined by examinging the |
* The system temporary directory is determined by examinging the |
163 |
* <code>java.tmpdir</code> system property. |
* <code>java.io.tmpdir</code> system property. |
164 |
* <p> |
* <p> |
165 |
* The <code>prefix</code> parameter is a sequence of at least three |
* The <code>prefix</code> parameter is a sequence of at least three |
166 |
* characters that are used as the start of the generated filename. The |
* characters that are used as the start of the generated filename. The |
186 |
// Grab the system temp directory if necessary |
// Grab the system temp directory if necessary |
187 |
if (directory == null) |
if (directory == null) |
188 |
{ |
{ |
189 |
String dirname = System.getProperty("java.tmpdir"); |
String dirname = System.getProperty("java.io.tmpdir"); |
190 |
if (dirname == null) |
if (dirname == null) |
191 |
throw new IOException("Cannot determine system temporary directory"); |
throw new IOException("Cannot determine system temporary directory"); |
192 |
|
|