
Throws java.io.FileNotFoundException Locates a folder of a particular type, within a given domain. Throws: java.io.FileNotFoundException Since: 1.4 Returns: the path to the folder searched for To explicitly locate a folder in a certainĭomain use findFolder(short domain, int folderType) or findFolder(short domain, int folderType, The user's preferences folder in ~/Library/Preferences. If this method is called to find the pref folder, it will return the first one it finds, For example, although there is only one root folder, there are multiple prefįolders. Certain folders of a given type may appear in more than This method returns the path to that particular folder.
JAVA 1.4 FOR MAC MAC OS X
Mac OS X recognizes certain specific folders that have distinct purposes.įor example, the user's desktop or temporary folder. Throws java.io.FileNotFoundException Locates a folder of a particular type. Public static findFolder(int folderType)
JAVA 1.4 FOR MAC CODE
Throws java.io.IOException Obtains the file creator code for a file or folder. Public static int getFileCreator( filename) Throws java.io.IOException Obtains the file type code for a file or folder. Throws java.io.IOException Sets the file creator code for a file or folder. Public static void setFileCreator( filename, Throws java.io.IOException Sets the file type code for a file or folder. Public static void setFileType( filename, Throws java.io.IOException Sets the file type and creator codes for a file or folder. Public static void setFileTypeAndCreator( filename,
JAVA 1.4 FOR MAC FOR MAC OS X
Returns: an int representing the 4 character value Since: Java for Mac OS X 10.5 - 1.5, Java for Mac OS X 10.5 Update 1 - 1.6 Parameters: type - the 4 character type to convert. Public static int OSTypeToInt( type) Converts an OSType (e.g. Since: Java for Mac OS X 10.5 - 1.5, Java for Mac OS X 10.5 Update 1 - 1.6 See Also: Constant Field Values Constructor Detail Public static final short kUserDomain Read/write. Public static final short kNetworkDomain All users configured to use a common network server has access to these resources. Public static final short kLocalDomain All users of a single machine have access to these resources. Public static final short kSystemDomain Read-only system hierarchy. Since: Java for Mac OS X 10.5 - 1.5, Java for Mac OS X 10.5 Update 1 - 1.6 See Also: Constant Field Values Public static final short kOnAppropriateDisk The default Methods inherited from class Ĭlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Sets the file type and creator codes for a file or folder. Sets the file type code for a file or folder. Sets the file creator code for a file or folder. this functionality has been superseded by () and ()
JAVA 1.4 FOR MAC FULL
Returns the full pathname for the resource identified by the given name and file extensionĪnd located in the specified bundle subdirectory.ĭeprecated. Return a valid path if Java was launched from the command line. Obtains the path to the current application's NSBundle, may not Obtains the file type code for a file or folder. Obtains the file creator code for a file or folder. Locates a folder of a particular type within a given domain and optionally creating the folder if it does

Locates a folder of a particular type, within a given domain. You can register a codes online at theĪll users of a single machine have access to these resources.Īll users configured to use a common network server has access to these resources. If you plan to publicly distribute your application, you must register its creator and any proprietary file types with the Appleĭeveloper Connection to avoid collisions with codes used by other developers. Double-clicking on the document then opens the appropriate browser rather than the Use an editor to create an HTML document, you might want to assign a browser's creator code for the file rather than Note that the creatorĬode can be set to any application, not necessarily the application that created it. For example, if a userĭouble-clicks on a document with the ttxt creator, it opens up in Text Edit, the application registered To identify the application that can handle a document, the Finder can look at the creator. Applications that use proprietary file types might assign their files a proprietary A file type of TEXT means that the file contains raw text. For example, the file type APPL identifies the file as an application and thereforeĮxecutable. The file type is a string that describes theĬontents of a file. These codes are unique 4-byte identifiers. In addition to file name suffixes, Mac OS X can use Finder attributes like file type and creator codes to Their limitation when writing code that must function well across multiple platforms. These attributes in turn are dependent on HFS and HFS+ file systems. The methods in this class are based on FinderĪttributes. Provides functionality to query and modify Mac-specific file attributes. SUMMARY: NESTED | FIELD | CONSTR | METHOD
