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.IConfigMRJ

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

Summary

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

              // Constructors 1
         IConfigMRJ(int) throws ConfigException;

              // Methods 28
         private static int call_nFindAppByName(int, String, int[], int[], int[], byte[], int, int[]);
         private static int call_nFindMatchesExt(int, String, int, int[], int, int[], int[]);
         private static int call_nFindMatchesFInfo(int, int, int, int, int[], int, byte[]);
         private static int call_nICCountMapEntries(int);
         private static int call_nICGetIndMapEntry(int, int, byte[]);
         private static int call_nICGetMapEntrySize();
         private static int call_nICGetSeed(int);
         private static int call_nICStart(int);
         private static void call_nICStop(int);
         private static int call_nLaunchURL(int, String, int, String[]);
         static IToolboxLock getLockObject();
         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 setLockObject(IToolboxLock);
         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.

Author:
  Copyright (c) 1997-2002 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

### · lockObject | Summary | Top

       private static IToolboxLock lockObject

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

### · setLockObject | Summary | Top

       static void setLockObject(IToolboxLock lock)

### · getLockObject | Summary | Top

       static IToolboxLock getLockObject()

### · 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.

### · call_nICStart | Summary | Top

       private static int call_nICStart(int creator)

### · call_nICStop | Summary | Top

       private static void call_nICStop(int ourHandle)

### · call_nICGetMapEntrySize | Summary | Top

       private static int call_nICGetMapEntrySize()

### · call_nICGetSeed | Summary | Top

       private static int call_nICGetSeed(int ourHandle)

### · call_nICCountMapEntries | Summary | Top

       private static int call_nICCountMapEntries(int ourHandle)

### · call_nICGetIndMapEntry | Summary | Top

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

### · call_nFindMatchesExt | Summary | Top

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

### · call_nFindMatchesFInfo | Summary | Top

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

### · call_nFindAppByName | Summary | Top

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

### · call_nLaunchURL | Summary | Top

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

### · 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