code: public static List<OutputStream> convertFilesToStreams(File[] localPaths,
        Storage dstStorage, String str) throws IOException {
      List<OutputStream> outputStreams = new ArrayList<OutputStream>();
      if (localPaths != null) {
        for (File f : localPaths) {
          try {
            if (f.exists()) {
              LOG.warn("Overwriting existing file " + f
                  + " with file downloaded form " + str);
            }
            outputStreams.add(new FileOutputStream(f));
          } catch (IOException ioe) {
            LOG.warn("Unable to download file " + f, ioe);
            if (dstStorage != null
                && (dstStorage instanceof StorageErrorReporter)) {
              ((StorageErrorReporter) dstStorage).reportErrorOnFile(f);
            }
          }
        }
  
        if (outputStreams.isEmpty()) {
          throw new IOException("Unable to download to any storage directory");
        }
      }
      return outputStreams;
    }
docs: Convert given list of files to a list of output streams.