Changeset 1331 for trunk/src/java/org/jcoderz/commons/util/FileUtils.java
- Timestamp:
- 03/28/09 20:29:42 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/java/org/jcoderz/commons/util/FileUtils.java
r1286 r1331 448 448 * 449 449 * @param dir the directory to be created. 450 * @throws IOException the directorycould not be created.450 * @throws IOException if the file could not be created. 451 451 * @see File#mkdir() 452 452 */ … … 462 462 } 463 463 } 464 465 /** 466 * Creates the given file. 467 * @param newFile the file to create 468 * @throws IOException the file could not be created. 469 * @see File#createNewFile() 470 */ 471 public static void createNewFile (File newFile) 472 throws IOException 473 { 474 if (!newFile.createNewFile()) 475 { 476 throw new IOException("Failed to create new File " + newFile); 477 } 478 } 464 479 }
