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

    java.lang.Object
       |
       +----com.jconfig.FinderInfo

Summary

    public class  FinderInfo
         extends java.lang.Object
         implements com.jconfig.FileCharacteristic,
                    java.lang.Cloneable
    {
              // Fields 12
         public static final int APPLICATION_TYPE;
         public static final int FI_ARRAYLEN;
         public static final int FI_OFFS_ATTRIBUTES;
         public static final int FI_OFFS_CRE;
         public static final int FI_OFFS_FLAGS;
         public static final int FI_OFFS_TYPE;
         public static final int UNKNOWN_TYPE;
         private int attributes;
         private static final String copyrightString;
         private int creator;
         private int flags;
         private int type;

              // Constructors 3
         public FinderInfo(int, int);
         public FinderInfo(int, int, int, int);
         public FinderInfo(int[]);

              // Methods 11
         public int getAttributes();
         public int getCreator();
         public int getFileType();
         public int getFlags();
         public boolean isMatch(FileCharacteristic);
         public void setAttributes(int);
         public void setCreator(int);
         public void setFileType(int);
         public void setFlags(int);
         public void toArray(int[]);
         public String toString();
    }

Represents a Macintosh creator code/file type pair.

Author:
  Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.

Cross Reference

Returned By:
  CEVExtensionFinder.getFinderInfos(), ConfigEntry.getFinderInfo(), ConfigListFile.findMatches(), ConfigList.findMatches(), DiskFile.getFinderInfo(), FileRegistryI.findFinderInfo(), FileRegistryPlain.findFinderInfo(), FileRegistry.findFinderInfo(), FileType.getFinderInfos(), IConfigEntryBinary.getFinderInfo(), DiskFileMRJ.getFinderInfo(), FileRegistryMRJ.findFinderInfo(), IConfigEntryMRJ.getFinderInfo(), IConfigMRJ.findMatches(), DiskFileNix.getFinderInfo(), FileRegistryNix.findFinderInfo(), DiskFileMSVM.getFinderInfo(), FileRegistryMSVM.findFinderInfo()

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · creator | Summary | Top

       private int creator

### · type | Summary | Top

       private int type

### · attributes | Summary | Top

       private int attributes

### · flags | Summary | Top

       private int flags

### · APPLICATION_TYPE | Summary | Top

       public static final int APPLICATION_TYPE

### · UNKNOWN_TYPE | Summary | Top

       public static final int UNKNOWN_TYPE

### · FI_ARRAYLEN | Summary | Top

       public static final int FI_ARRAYLEN

> Required length of the array argument to the array constructor and to the toArray method.

### · FI_OFFS_CRE | Summary | Top

       public static final int FI_OFFS_CRE

> Offset to the creator value to the array constructor and to the toArray method.

### · FI_OFFS_TYPE | Summary | Top

       public static final int FI_OFFS_TYPE

> Offset to the type value to the array constructor and to the toArray method.

### · FI_OFFS_FLAGS | Summary | Top

       public static final int FI_OFFS_FLAGS

> Offset to the flag value to the array constructor and to the toArray method.

### · FI_OFFS_ATTRIBUTES | Summary | Top

       public static final int FI_OFFS_ATTRIBUTES

> Offset to the attributes value to the array constructor and to the toArray method.

Constructors

### · FinderInfo | Summary | Top

       public FinderInfo(int c,
                         int t)

> Construct from a creator and type.

### · FinderInfo | Summary | Top

       public FinderInfo(int c,
                         int t,
                         int flgs,
                         int attr)

> Construct from a creator, type, flags, and attributes.

### · FinderInfo | Summary | Top

       public FinderInfo(int[] a)

> Construct from an array containing the creator, type, flags, and attributes.

Methods

### · getCreator | Summary | Top

       public int getCreator()

> Returns the creator value.

### · getFileType | Summary | Top

       public int getFileType()

> Returns the file type value.

### · getFlags | Summary | Top

       public int getFlags()

> Returns the flags value.

### · getAttributes | Summary | Top

       public int getAttributes()

> Returns the attributes value.

### · setCreator | Summary | Top

       public void setCreator(int c)

> Sets the creator value.

### · setFileType | Summary | Top

       public void setFileType(int t)

> Sets the file type value.

### · setFlags | Summary | Top

       public void setFlags(int f)

> Sets the flags value.

### · setAttributes | Summary | Top

       public void setAttributes(int a)

> Sets the attributes value.

### · toArray | Summary | Top

       public void toArray(int[] a)

> Puts the values of this object into the given array. The array must have four elements, and the items are placed into the array

### · isMatch | Summary | Top

       public boolean isMatch(FileCharacteristic fc)

> If 'fc' is a FinderInfo object, and if it has the same creator and file type values as this object, returns true. Otherwise, returns false. NOTE: this does not compare the flags and attributes fields.

> Implements:
>   isMatch in interface FileCharacteristic

### · toString | Summary | Top

       public String toString()

> Overrides:
>   toString in class Object

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7