Home | History | Annotate | Download | only in java-jni

Lines Matching full:file

5 import java.io.File;
40 * Given an ordered list of directories to look in, locate the specified file.
41 * Returns <code>null</code> if file not found.
43 * @param filename the name of the file.
44 * @return a File object corresponding to the file. <code>null</code> if
45 * file not found.
47 public static File locateFile(List<String> loadpaths, String filename) {
55 File file = new File(path, filename);
56 if (file.exists()) {
57 return file;