private static File createTempDirectory(){
  if (tmp != null) {
    return tmp;
  }
  try {
    tmp=File.createTempFile("usb4java",null);
    if (!tmp.delete()) {
      throw new IOException("Unable to delete temporary file " + tmp);
    }
    if (!tmp.mkdirs()) {
      throw new IOException("Unable to create temporary directory " + tmp);
    }
    tmp.deleteOnExit();
    return tmp;
  }
 catch (  final IOException e) {
    throw new LoaderException("Unable to create temporary directory " + "for usb4java natives: " + e,e);
  }
}

private static File createTempDirectory ( ) { if ( tmp != null ) { return tmp ; } try { tmp = File . createTempFile ( "usb4java" , null ) ; if ( ! tmp . delete ( ) ) { throw new IOException ( "Unable to delete temporary file " + tmp ) ; } if ( ! tmp . mkdirs ( ) ) { throw new IOException ( "Unable to create temporary directory " + tmp ) ; } tmp . deleteOnExit ( ) ; return tmp ; } catch ( final IOException e ) { throw new LoaderException ( "Unable to create temporary directory " + "for usb4java natives: " + e , e ) ; } }
creates the temporary directory used for unpacking the native libraries . this directory is marked for deletion on exit .
