All Packages This Package Class Hierarchy Class Search Index
Class com.jconfig.mac.FileRegistryMRJ
java.lang.Object
|
+----com.jconfig.mac.FileRegistryMRJ
class FileRegistryMRJ
extends java.lang.Object
implements com.jconfig.FileRegistryI
{
// Fields 12
private AppFinderMRJ appFinder;
private static final String copyrightString;
private int direction;
static final int kCW113;
private static final int kGetVolumesMaxReturn;
private static final String kJCPropsFileName;
static final int kMRJJRI;
static final int kMRJOSX;
private IConfigMRJ mrjConfig;
private ConfigList plainConfig;
private PlatformInfoMRJ platformInfo;
private MacPropertiesMRJ props;
// Constructors 1
FileRegistryMRJ(PlatformInfoMRJ, int, File, int) throws ConfigException;
// Methods 29
public int createAlias(DiskObject, File, int, int) throws FileNotFoundException, DiskFileException;
public AppFile createAppFile(File) throws FileNotFoundException, DiskFileException;
public DiskObject createDiskObject(File, int) throws FileNotFoundException, DiskFileException;
private void createFileUtils(File, int);
public FileExtension[] findExtensions(FinderInfo, int);
public FinderInfo[] findFinderInfo(FileExtension, int);
public AppFile[] getApps(FileExtension, int, int);
public AppFile[] getApps(FinderInfo, int, int);
public AppFile[] getApps(String, int, int);
public AppFile[] getApps_classic(FileExtension, int, int);
public AppFile[] getApps_classic(FinderInfo, int, int);
public AppFile[] getApps_classic(String, int, int);
public int getDirection();
public FileSystem[] getFileSystems(int, int);
public FileType getFileType(File) throws FileNotFoundException, DiskFileException;
public FileUtilsI getFileUtils();
public Monitor getMainMonitor();
public Monitor[] getMonitors();
public PlatformInfoI getPlatformInfo();
public AppProcess[] getProcesses(int, int);
public DiskVolume[] getVolumes();
public int iterate(ConfigEntryVisitor);
public int launchURL(String, int, String[]);
private AppFile[] pushOntoAppArray(AppFile, AppFile[]);
public DiskObject resolveAlias(DiskAlias, int) throws FileNotFoundException, DiskFileException;
public void setDirection(int);
public void setFileUtils(FileUtilsI);
private IConfigMRJ tryCreateMRJConfig(File, int);
private ConfigList tryCreatePlainConfig(File, int);
}
TO DO *************
change docs to reflect new impl
The main class of the package. This is created by FileRegistryFactoryMac, and on Mac, all calls to the FileRegistry
singleton will be delegated to this class. This class loads the appropriate native code shared library.
If Internet Config is installed, some calls are delegated to an IConfigMRJ object; otherwise, those calls are
delegated to a ConfigListFile object.
Some other calls are delegated to an AppFinderMRJ object, as well as to native code via AppUtilsMRJ.
- Author:
-
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.
private static final String copyrightString
private AppFinderMRJ appFinder
private ConfigList plainConfig
private IConfigMRJ mrjConfig
private MacPropertiesMRJ props
private PlatformInfoMRJ platformInfo
private int direction
private static final String kJCPropsFileName
static final int kMRJJRI
static final int kCW113
static final int kMRJOSX
private static final int kGetVolumesMaxReturn
FileRegistryMRJ(PlatformInfoMRJ platformInfo,
int which,
File curDir,
int creator) throws ConfigException
Uses loadLibrary() to load the appropriate native code library.
Creates a ConfigList object using either IConfigMRJ or ConfigListPlain
Creates an AppFinderMRJ object to which some calls are delegated.
public PlatformInfoI getPlatformInfo()
- Implements:
- getPlatformInfo in interface FileRegistryI
private void createFileUtils(File curDir,
int creator)
public FileExtension[] findExtensions(FinderInfo fInfo,
int maxToReturn)
- Implements:
- findExtensions in interface FileRegistryI
public FinderInfo[] findFinderInfo(FileExtension ext,
int maxToReturn)
- Implements:
- findFinderInfo in interface FileRegistryI
public AppFile[] getApps(String appName,
int maxToReturn,
int flags)
- Implements:
- getApps in interface FileRegistryI
public AppFile[] getApps(FileExtension ext,
int maxToReturn,
int flags)
- Implements:
- getApps in interface FileRegistryI
public AppFile[] getApps(FinderInfo finfo,
int maxToReturn,
int flags)
- Implements:
- getApps in interface FileRegistryI
public AppFile[] getApps_classic(String appName,
int maxToReturn,
int flags)
public AppFile[] getApps_classic(FinderInfo finfo,
int maxToReturn,
int flags)
public AppFile[] getApps_classic(FileExtension ext,
int maxToReturn,
int flags)
private AppFile[] pushOntoAppArray(AppFile af,
AppFile[] ary)
public int iterate(ConfigEntryVisitor fdv)
- Implements:
- iterate in interface FileRegistryI
public int launchURL(String url,
int flags,
String[] preferredBrowsers)
- Implements:
- launchURL in interface FileRegistryI
private IConfigMRJ tryCreateMRJConfig(File curDir,
int creator)
private ConfigList tryCreatePlainConfig(File curDir,
int creator)
public DiskVolume[] getVolumes()
- Implements:
- getVolumes in interface FileRegistryI
public AppFile createAppFile(File fl) throws FileNotFoundException, DiskFileException
- Implements:
- createAppFile in interface FileRegistryI
public DiskObject createDiskObject(File fl,
int flags) throws FileNotFoundException, DiskFileException
- Implements:
- createDiskObject in interface FileRegistryI
public int createAlias(DiskObject target,
File newAlias,
int creator,
int flags) throws FileNotFoundException, DiskFileException
- Implements:
- createAlias in interface FileRegistryI
public DiskObject resolveAlias(DiskAlias da,
int flags) throws FileNotFoundException, DiskFileException
- Implements:
- resolveAlias in interface FileRegistryI
public FileType getFileType(File fl) throws FileNotFoundException, DiskFileException
- Implements:
- getFileType in interface FileRegistryI
public int getDirection()
- Implements:
- getDirection in interface FileRegistryI
public void setDirection(int dir)
- Implements:
- setDirection in interface FileRegistryI
public Monitor[] getMonitors()
- Implements:
- getMonitors in interface FileRegistryI
public Monitor getMainMonitor()
- Implements:
- getMainMonitor in interface FileRegistryI
public AppProcess[] getProcesses(int maxToReturn,
int flags)
- Implements:
- getProcesses in interface FileRegistryI
public FileSystem[] getFileSystems(int maxToReturn,
int flags)
- Implements:
- getFileSystems in interface FileRegistryI
public void setFileUtils(FileUtilsI fi)
- Implements:
- setFileUtils in interface FileRegistryI
public FileUtilsI getFileUtils()
- Implements:
- getFileUtils in interface FileRegistryI
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7