Ejemplo n.º 1
0
 @Delegate(
     interfaceName = "com.ocean.FttpWorker",
     methodName = "createFile",
     policy = DelegatePolicy.Implements)
 public File create(String fp, boolean isFile) throws RemoteException, FttpException {
   File rf = null;
   FileAdapter fa = new FileAdapter(fp);
   try {
     rf = fa.createFile(fa.getPath(), isFile);
   } catch (Exception e) {
     fa.close();
     throw new FttpException(e);
   }
   fa.close();
   return rf;
 }