Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.mac.FileRegistryMRJ

    java.lang.Object
       |
       +----com.jconfig.mac.FileRegistryMRJ

Summary

    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.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · appFinder | Summary | Top

       private AppFinderMRJ appFinder

### · plainConfig | Summary | Top

       private ConfigList plainConfig

### · mrjConfig | Summary | Top

       private IConfigMRJ mrjConfig

### · props | Summary | Top

       private MacPropertiesMRJ props

### · platformInfo | Summary | Top

       private PlatformInfoMRJ platformInfo

### · direction | Summary | Top

       private int direction

### · kJCPropsFileName | Summary | Top

       private static final String kJCPropsFileName

### · kMRJJRI | Summary | Top

       static final int kMRJJRI

### · kCW113 | Summary | Top

       static final int kCW113

### · kMRJOSX | Summary | Top

       static final int kMRJOSX

### · kGetVolumesMaxReturn | Summary | Top

       private static final int kGetVolumesMaxReturn

Constructors

### · FileRegistryMRJ | Summary | Top

       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.

Methods

### · getPlatformInfo | Summary | Top

       public PlatformInfoI getPlatformInfo()

> Implements:
>   getPlatformInfo in interface FileRegistryI

### · createFileUtils | Summary | Top

       private void createFileUtils(File curDir,
                                    int creator)

### · findExtensions | Summary | Top

       public FileExtension[] findExtensions(FinderInfo fInfo,
                                             int maxToReturn)

> Implements:
>   findExtensions in interface FileRegistryI

### · findFinderInfo | Summary | Top

       public FinderInfo[] findFinderInfo(FileExtension ext,
                                          int maxToReturn)

> Implements:
>   findFinderInfo in interface FileRegistryI

### · getApps | Summary | Top

       public AppFile[] getApps(String appName,
                                int maxToReturn,
                                int flags)

> Implements:
>   getApps in interface FileRegistryI

### · getApps | Summary | Top

       public AppFile[] getApps(FileExtension ext,
                                int maxToReturn,
                                int flags)

> Implements:
>   getApps in interface FileRegistryI

### · getApps | Summary | Top

       public AppFile[] getApps(FinderInfo finfo,
                                int maxToReturn,
                                int flags)

> Implements:
>   getApps in interface FileRegistryI

### · getApps_classic | Summary | Top

       public AppFile[] getApps_classic(String appName,
                                        int maxToReturn,
                                        int flags)

### · getApps_classic | Summary | Top

       public AppFile[] getApps_classic(FinderInfo finfo,
                                        int maxToReturn,
                                        int flags)

### · getApps_classic | Summary | Top

       public AppFile[] getApps_classic(FileExtension ext,
                                        int maxToReturn,
                                        int flags)

### · pushOntoAppArray | Summary | Top

       private AppFile[] pushOntoAppArray(AppFile af,
                                          AppFile[] ary)

### · iterate | Summary | Top

       public int iterate(ConfigEntryVisitor fdv)

> Implements:
>   iterate in interface FileRegistryI

### · launchURL | Summary | Top

       public int launchURL(String url,
                            int flags,
                            String[] preferredBrowsers)

> Implements:
>   launchURL in interface FileRegistryI

### · tryCreateMRJConfig | Summary | Top

       private IConfigMRJ tryCreateMRJConfig(File curDir,
                                             int creator)

### · tryCreatePlainConfig | Summary | Top

       private ConfigList tryCreatePlainConfig(File curDir,
                                               int creator)

### · getVolumes | Summary | Top

       public DiskVolume[] getVolumes()

> Implements:
>   getVolumes in interface FileRegistryI

### · createAppFile | Summary | Top

       public AppFile createAppFile(File fl)  throws FileNotFoundException, DiskFileException

> Implements:
>   createAppFile in interface FileRegistryI

### · createDiskObject | Summary | Top

       public DiskObject createDiskObject(File fl,
                                          int flags)  throws FileNotFoundException, DiskFileException

> Implements:
>   createDiskObject in interface FileRegistryI

### · createAlias | Summary | Top

       public int createAlias(DiskObject target,
                              File newAlias,
                              int creator,
                              int flags)  throws FileNotFoundException, DiskFileException

> Implements:
>   createAlias in interface FileRegistryI

### · resolveAlias | Summary | Top

       public DiskObject resolveAlias(DiskAlias da,
                                      int flags)  throws FileNotFoundException, DiskFileException

> Implements:
>   resolveAlias in interface FileRegistryI

### · getFileType | Summary | Top

       public FileType getFileType(File fl)  throws FileNotFoundException, DiskFileException

> Implements:
>   getFileType in interface FileRegistryI

### · getDirection | Summary | Top

       public int getDirection()

> Implements:
>   getDirection in interface FileRegistryI

### · setDirection | Summary | Top

       public void setDirection(int dir)

> Implements:
>   setDirection in interface FileRegistryI

### · getMonitors | Summary | Top

       public Monitor[] getMonitors()

> Implements:
>   getMonitors in interface FileRegistryI

### · getMainMonitor | Summary | Top

       public Monitor getMainMonitor()

> Implements:
>   getMainMonitor in interface FileRegistryI

### · getProcesses | Summary | Top

       public AppProcess[] getProcesses(int maxToReturn,
                                        int flags)

> Implements:
>   getProcesses in interface FileRegistryI

### · getFileSystems | Summary | Top

       public FileSystem[] getFileSystems(int maxToReturn,
                                          int flags)

> Implements:
>   getFileSystems in interface FileRegistryI

### · setFileUtils | Summary | Top

       public void setFileUtils(FileUtilsI fi)

> Implements:
>   setFileUtils in interface FileRegistryI

### · getFileUtils | Summary | Top

       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