|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.apple.mrj.MRJFileUtils
Field Summary | |
static MRJOSType |
kAppleMenuFolderType
|
static MRJOSType |
kCachedDataFolderType
|
static MRJOSType |
kChewableItemsFolderType
|
static MRJOSType |
kControlPanelFolderType
|
static MRJOSType |
kDesktopFolderType
|
static MRJOSType |
kExtensionFolderType
|
static MRJOSType |
kFontsFolderType
|
static MRJOSType |
kPreferencesFolderType
|
static MRJOSType |
kPrintMonitorDocsFolderType
|
static MRJOSType |
kShutdownFolderType
|
static MRJOSType |
kStartupFolderType
|
static MRJOSType |
kSystemFolderType
|
static MRJOSType |
kTemporaryFolderType
|
static MRJOSType |
kTrashFolderType
|
static short |
kUserDomain
Get the path to a special Macintosh folder. |
static MRJOSType |
kWhereToEmptyTrashFolderType
|
Constructor Summary | |
MRJFileUtils()
|
Method Summary | |
static File |
findApplication(MRJOSType applSig)
Deprecated. Not implemented in Mac OS X |
static File |
findFolder(MRJOSType folderType)
|
static File |
findFolder(short domain,
MRJOSType folderType)
|
static File |
findFolder(short domain,
MRJOSType folderType,
boolean createIfNeeded)
|
static MRJOSType |
getFileCreator(File file)
Returns the creator of a file. |
static MRJOSType |
getFileType(File file)
Returns the type of a file. |
static File |
getResource(String resourceName)
Gets specified file from the Resources directory in app bundle Will throw NoSuchMethodError if run on MRJ 2.x VM. |
static File |
getResource(String resourceName,
String subDirName)
Gets specified file from specified sub directory of Resources directory in app bundle Will throw NoSuchMethodError if run on MRJ 2.x VM. |
static void |
openURL(String url)
Launches the default browser application (if not already running) and tells it to open the specifed URL. |
static void |
setDefaultFileCreator(MRJOSType defaultCreator)
Deprecated. Not implemented in Mac OS X |
static void |
setDefaultFileType(MRJOSType defaultType)
Deprecated. Not implemented in Mac OS X |
static void |
setFileCreator(File file,
MRJOSType creator)
Sets the creator of an existing file in the MacOS filesystem. |
static boolean |
setFileLastModified(File file,
long aDate)
Deprecated. use java.io.File.setLastModified |
static void |
setFileType(File file,
MRJOSType type)
Sets the type of an existing file in the MacOS filesystem. |
static void |
setFileTypeAndCreator(File file,
MRJOSType type,
MRJOSType creator)
Sets the type and creator of an existing file in the MacOS filesystem. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short kUserDomain
public static final MRJOSType kSystemFolderType
public static final MRJOSType kDesktopFolderType
public static final MRJOSType kTrashFolderType
public static final MRJOSType kWhereToEmptyTrashFolderType
public static final MRJOSType kPrintMonitorDocsFolderType
public static final MRJOSType kStartupFolderType
public static final MRJOSType kShutdownFolderType
public static final MRJOSType kAppleMenuFolderType
public static final MRJOSType kControlPanelFolderType
public static final MRJOSType kExtensionFolderType
public static final MRJOSType kFontsFolderType
public static final MRJOSType kPreferencesFolderType
public static final MRJOSType kChewableItemsFolderType
public static final MRJOSType kTemporaryFolderType
public static final MRJOSType kCachedDataFolderType
Constructor Detail |
public MRJFileUtils()
Method Detail |
public static boolean setFileLastModified(File file, long aDate)
public static void setDefaultFileType(MRJOSType defaultType)
public static void setDefaultFileCreator(MRJOSType defaultCreator)
public static final void setFileTypeAndCreator(File file, MRJOSType type, MRJOSType creator) throws IOException
public static final void setFileType(File file, MRJOSType type) throws IOException
public static final void setFileCreator(File file, MRJOSType creator) throws IOException
public static final MRJOSType getFileType(File file) throws IOException
public static final MRJOSType getFileCreator(File file) throws IOException
public static File findFolder(MRJOSType folderType) throws FileNotFoundException
public static File findFolder(short domain, MRJOSType folderType) throws FileNotFoundException
public static File findFolder(short domain, MRJOSType folderType, boolean createIfNeeded) throws FileNotFoundException
public static File findApplication(MRJOSType applSig) throws FileNotFoundException
public static void openURL(String url) throws IOException
public static File getResource(String resourceName) throws FileNotFoundException
resourceName
- name of the fileFileNotFoundException
- if the request file does not exist in the app bundlepublic static File getResource(String resourceName, String subDirName) throws FileNotFoundException
resourceName
- name of the filesubDirName
- name of the sub directory of ResourcesFileNotFoundException
- if the request file does not exist in the app bundle
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.