Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] 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 ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.mac.IConfigMRJ

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

Summary

    class  IConfigMRJ
         extends java.lang.Object
         implements com.jconfig.ConfigList
    {
              // Fields 4
         private static final String copyrightString;
         static final int kFindAppMaxNameLen;
         static final int kMaxExtensionLen;
         private int ourCreator;

              // Constructors 1
         IConfigMRJ(int) throws ConfigException;

              // Methods 16
         private static native int nFindAppByName(int, String, int[], int[], int[], byte[], int, int[]);
         private static native int nFindMatchesExt(int, String, int, int[], int, int[], int[]);
         private static native int nFindMatchesFInfo(int, int, int, int, int[], int, byte[]);
         private static native int nICCountMapEntries(int);
         private static native int nICGetIndMapEntry(int, int, byte[]);
         private static native int nICGetMapEntrySize();
         private static native int nICGetSeed(int);
         private static native int nICStart(int);
         private static native void nICStop(int);
         private static native int nLaunchURL(int, String, int, String[]);
         static void testLink();

         public AppFile[] findAppByName(String, int, int);
         public FinderInfo[] findMatches(FileExtension, int, int);
         public FileExtension[] findMatches(FinderInfo, int, int);
         public int iterate(ConfigEntryVisitor);
         public int launchURL(String, int, String[]);
    }

Wraps several Internet Config routines.

See the IC documentation for more information on these routines.

Using advanced Carbon-14 dating, professional anthropologist Mary Hardy has determined that this class contains fragments of the original JConfig culture.

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Cross Reference

Returned By:
  FileRegistryMRJ.tryCreateMRJConfig()

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · ourCreator | Summary | Top

       private int ourCreator

### · kMaxExtensionLen | Summary | Top

       static final int kMaxExtensionLen

### · kFindAppMaxNameLen | Summary | Top

       static final int kFindAppMaxNameLen

Constructors

### · IConfigMRJ | Summary | Top

       IConfigMRJ(int creator)  throws ConfigException

> Tries to connect with Internet Config. If IC is not installed, or if an error occurs, throws a ConfigException exception.

> Parameter | Description
> creator | the creator code of the app calling this method

Methods

### · iterate | Summary | Top

       public int iterate(ConfigEntryVisitor fdv)

> Iterate over the entries of the IC file mapping database.

> Implements:
>   iterate in interface ConfigList

### · findMatches | Summary | Top

       public FileExtension[] findMatches(FinderInfo fInfo,
                                          int maxToReturn,
                                          int direction)

> Returns an array of the FileExtension's corresponding to the given FinderInfo. For instance, ".txt" corresponds to 'TEXT'

> Implements:
>   findMatches in interface ConfigList

### · findMatches | Summary | Top

       public FinderInfo[] findMatches(FileExtension ext,
                                       int maxToReturn,
                                       int direction)

> Returns an array of the FinderInfo's corresponding to the given FileExtension. For instance, 'TEXT' corresponds to ".txt"

> Implements:
>   findMatches in interface ConfigList

### · findAppByName | Summary | Top

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

> Returns an array of AppFile's whose file names contain the given name. These file names will be retrieved from the IC mapping table, which contains a list of apps. That does not mean that the app is necessarily on the user's system, however. See the IC documentation for more details.

### · launchURL | Summary | Top

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

> Use Internet Config to launch the given URL.

### · nICStart | Summary | Top

       private static native int nICStart(int creator)

> Wraps the IC routine of similar name.

### · nICStop | Summary | Top

       private static native void nICStop(int ourHandle)

> Wraps the IC routine of similar name.

### · nICGetMapEntrySize | Summary | Top

       private static native int nICGetMapEntrySize()

> Wraps the IC routine of similar name.

### · nICGetSeed | Summary | Top

       private static native int nICGetSeed(int ourHandle)

> Wraps the IC routine of similar name.

### · nICCountMapEntries | Summary | Top

       private static native int nICCountMapEntries(int ourHandle)

> Wraps the IC routine of similar name.

### · nICGetIndMapEntry | Summary | Top

       private static native int nICGetIndMapEntry(int ourHandle,
                                                   int whichRecord,
                                                   byte[] record)

> Wraps the IC routine of similar name.

### · nFindMatchesExt | Summary | Top

       private static native int nFindMatchesExt(int appCreator,
                                                 String extension,
                                                 int direction,
                                                 int[] numReturned,
                                                 int maxToReturn,
                                                 int[] cVals,
                                                 int[] tVals)

> Wraps the IC routine of similar name.

### · nFindMatchesFInfo | Summary | Top

       private static native int nFindMatchesFInfo(int appCreator,
                                                   int targetCreator,
                                                   int targetType,
                                                   int direction,
                                                   int[] numReturned,
                                                   int maxToReturn,
                                                   byte[] extensions)

> Wraps the IC routine of similar name.

### · nFindAppByName | Summary | Top

       private static native int nFindAppByName(int appCreator,
                                                String matchName,
                                                int[] creators,
                                                int[] vRefs,
                                                int[] parIDs,
                                                byte[] pNames,
                                                int maxToReturn,
                                                int[] numRet)

> Wraps the IC routine of similar name.

### · nLaunchURL | Summary | Top

       private static native int nLaunchURL(int appCreator,
                                            String url,
                                            int flags,
                                            String[] preferredBrowsers)

> Wraps the IC routine of similar name.

### · testLink | Summary | Top

       static void testLink()

> Calls each of the native methods with invalid arguments. Used to test if there are link problems.

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7