Esempio n. 1
0
  private void copyOtherStaff() throws IOException, CoreException {
    if (ignoreCopy || source == null || storage == null) return;

    if (!source.equals(storage.getInputSource())) {
      IOutputTarget target = storage.getOutputTarget();
      copyAll(source, target);
    } else {
      // Prefetch all file entries:
      workbook.getManifest().getFileEntries();
    }
  }
Esempio n. 2
0
 /**
  * @param builder
  * @param source
  * @param storage
  * @param encryptionHandler
  */
 public WorkbookLoader(
     WorkbookBuilderImpl builder,
     IInputSource source,
     IStorage storage,
     IEncryptionHandler encryptionHandler)
     throws CoreException {
   super();
   this.builder = builder;
   if (source == null && storage != null) {
     source = storage.getInputSource();
     this.ignoreCopy = true;
   } else {
     this.ignoreCopy = false;
   }
   this.source = source;
   this.storage = storage;
   this.encryptionHandler = encryptionHandler;
 }