Example #1
0
 /**
  * Loads the next document.
  *
  * @return {@code true} if the document was loaded successfully
  */
 public boolean loadNext() {
   boolean result = false;
   IMObjectReference ref = iterator.next();
   DocumentAct act = getDocumentAct(ref);
   if (act != null) {
     File file = new File(dir, act.getFileName());
     try {
       Document doc = createDocument(file);
       addDocument(act, doc);
       notifyLoaded(file, act.getId());
     } catch (Throwable exception) {
       notifyError(file, exception);
     }
     result = true;
   }
   return result;
 }