Lines Matching defs:file
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
60 * of directory and JAR file URLs.
63 * @return the resulting array of directory and JAR file URLs
84 * Returns the directory or JAR file URL corresponding to the specified
85 * local file name.
87 * @param file the File object
88 * @return the resulting directory or JAR file URL, or null if unknown
90 private static URL fileToURL(File file) {
93 name = file.getCanonicalPath();
95 name = file.getAbsolutePath();
101 // If the file does not exist, then assume that it's a directory
102 if (!file.isFile()) {
106 return new URL("file", "", name);
108 throw new IllegalArgumentException("file");