Ejemplo n.º 1
0
 /**
  * Unlockes SmartFile
  *
  * @param smart target SmartFile
  */
 public static void unlock(SmartFile smart) {
   try {
     smart.getLocalFile().setWritable(true, true);
   } catch (NullPointerException e) {
   } catch (SecurityException e) {
   } catch (Exception e) {
   }
 }
Ejemplo n.º 2
0
 /** Check whenever File is locked */
 public static boolean isLocked(SmartFile file) {
   if (file == null) throw new IllegalArgumentException("file does not Exists");
   return file.canLock() && file.isLocked();
 }