com.stc.connector.framework.util
Class DirUtils

java.lang.Object
  extended bycom.stc.connector.framework.util.DirUtils

public class DirUtils
extends java.lang.Object

Utilities for Directory manipulation.


Constructor Summary
DirUtils()
           
 
Method Summary
static boolean createDirectory(java.io.File dir)
          Create the requested directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirUtils

public DirUtils()
Method Detail

createDirectory

public static boolean createDirectory(java.io.File dir)
                               throws java.lang.SecurityException
Create the requested directory. The existence of the full path will be confirmed and any missing directories will be created. Potential conflicts during concurrent invocations from multiple threads with overlapping paths are addressed and resolved.

Parameters:
dir - The directory to be created.
Returns:
true if the directory and all parent directories were created.
Throws:
java.lang.SecurityException - - If a security manager exists and its SecurityManager.checkWrite(java.io.FileDescriptor) method does not permit the named directory and all necessary parent directories and to be created.