Lines Matching refs: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
46 static final int kLSItemInfoIsApplication = 0x00000004; /* Single-file or packaged application*/
48 static final int kLSItemInfoIsAliasFile = 0x00000010; /* Alias file (includes sym links)*/
100 FileInfo(final File file){
101 isDirectory = file.isDirectory();
102 absolutePath = file.getAbsolutePath();
118 FileInfo getFileInfoFor(final File file) {
119 final FileInfo info = cache.get(file);
121 final FileInfo newInfo = new FileInfo(file);
122 cache.put(file, newInfo);
266 * Returns the actual file represented by this object. This will
267 * resolve any aliases in the path, including this file if it is an
274 * In the event of a path that does not contain any aliases, or if the file
275 * does not exist, this method will return the file that was passed in.
276 * @return The canonical path to the file
281 // If the file exists and is not an alias, there aren't
298 File file = new File("/");
300 file = new File(file, nextComponent);
301 final FileInfo info = getFileInfoFor(file);
304 // just return the file.
305 if (!file.exists()) { return mFile; }
307 if (isAlias(file)) {
312 // just return the file.
315 file = new File(path);
319 return file;
324 * the path of this file, in order, including the filename as the
327 * @return A linked list of the components of this file's path
333 File file = new File(mFile.getAbsolutePath());
334 componentList.add(0, file.getName());
335 while ((parent = file.getParent()) != null) {
336 file = new File(parent);
337 componentList.add(0, file.getName());