Java Folder Read getFiles(List filepaths)

Here you can find the source of getFiles(List filepaths)

Description

get Files

License

Open Source License

Parameter

Parameter Description
filepaths a parameter

Return

List

Declaration

public static List<File> getFiles(List<String> filepaths) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Manchester Centre for Integrative Systems Biology
 * University of Manchester//from   w  w  w  .  j  a v a 2s.  c  o  m
 * Manchester M1 7ND
 * United Kingdom
 * 
 * Copyright (C) 2007 University of Manchester
 * 
 * This program is released under the Academic Free License ("AFL") v3.0.
 * (http://www.opensource.org/licenses/academic.php)
 *******************************************************************************/

import java.io.*;

import java.util.*;

public class Main {
    /**
     * 
     * @param filepaths
     * @return List
     */
    public static List<File> getFiles(List<String> filepaths) {
        final List<File> files = new ArrayList<>();

        for (Iterator<String> iterator = filepaths.iterator(); iterator.hasNext();) {
            files.add(new File(iterator.next()));
        }

        return files;
    }
}

Related

  1. getFiles(File... repertoires)
  2. getFiles(final File dir)
  3. getFiles(final File root, final String[] endings)
  4. getFiles(final String classPath)
  5. getFiles(final String path, Vector files)
  6. getFiles(List filePaths)
  7. getFiles(List l, String directory)
  8. getFiles(String _path)
  9. getFiles(String dir)