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
31 * Provides functionality to query and modify Mac-specific file attributes. The methods in this class are based on Finder
32 * attributes. These attributes in turn are dependent on HFS and HFS+ file systems. As such, it is important to recognize
35 * In addition to file name suffixes, Mac OS X can use Finder attributes like file <code>type</code> and <code>creator</code> codes to
36 * identify and handle files. These codes are unique 4-byte identifiers. The file <code>type</code> is a string that describes the
37 * contents of a file. For example, the file type <code>APPL</code> identifies the file as an application and therefore
38 * executable. A file type of <code>TEXT</code> means that the file contains raw text. Any application that can read raw
39 * text can open a file of type <code>TEXT</code>. Applications that use proprietary file types might assign their files a proprietary
40 * file <code>type</code> code.
46 * use an editor to create an HTML document, you might want to assign a browser's <code>creator</code> code for the file rather than
50 * If you plan to publicly distribute your application, you must register its creator and any proprietary file types with the Apple
122 * Sets the file <code>type</code> and <code>creator</code> codes for a file or folder.
136 * Sets the file <code>type</code> code for a file or folder.
150 * Sets the file <code>creator</code> code for a file or folder.
164 * Obtains the file <code>type</code> code for a file or folder.
178 * Obtains the file <code>creator</code> code for a file or folder.
260 * open in the default browser as set in the Internet pane of System Preferences. File (<code>file://</code>) and
262 * they want to save the downloaded file(s).
265 * the URL for the file you want to open, it can either be an HTTP, FTP, or file url
300 * Returns the full pathname for the resource identified by the given name and file extension
304 * file name exactly matches name.
314 * @return full pathname for the resource identified by the given name and file extension and located in the specified bundle subdirectory.
350 * Moves the specified file to the Trash
352 * @param file
353 * @return returns true if the NSFileManager successfully moved the file to the Trash.
359 public static boolean moveToTrash(final File file) throws FileNotFoundException {
360 if (file == null || !file.exists()) throw new FileNotFoundException();
361 final String fileName = file.getAbsolutePath();
372 * Reveals the specified file in the Finder
374 * @param file
375 * the file to reveal
376 * @return returns true if the NSFileManager successfully revealed the file in the Finder.
382 public static boolean revealInFinder(final File file) throws FileNotFoundException {
383 if (file == null || !file.exists()) throw new FileNotFoundException();
384 final String fileName = file.getAbsolutePath();