Show
Ignore:
Timestamp:
03/28/09 20:29:42 (3 years ago)
Author:
amandel
Message:

#2 Quick implementation to detect new findings.
Fixed findings in file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/java/org/jcoderz/commons/util/FileUtils.java

    r1286 r1331  
    448448    * 
    449449    * @param dir the directory to be created. 
    450     * @throws IOException the directory could not be created. 
     450    * @throws IOException if the file could not be created. 
    451451    * @see File#mkdir() 
    452452    */ 
     
    462462      } 
    463463   } 
     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    } 
    464479}