All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----COM.tolstoy.jconfig.FileType
Summary |
public class FileType extends java.lang.Object { // Fields 3 public static final int kCreatedFromExt; public static final int kCreatedFromFTAC; public static final int kCreatedFromMIME; // Constructors 2 public FileType(FileExtension); public FileType(FinderInfo); // Methods 5 public void flushCachedData(); public FileExtension[] getExtensions(int); public FinderInfo[] getFinderInfos(int); public int getProvenance(); public String toString(); }
Represents a cross-platform file type. Instances are created from either a FileExtension or FinderInfo object, and arrays of corresponding FinderInfo or FileExtension objects can be obtained.
Cross Reference |
Fields |
· kCreatedFromExt | Summary | Top |
public static final int kCreatedFromExt
See the getProvenance() method.
· kCreatedFromFTAC | Summary | Top |
public static final int kCreatedFromFTAC
See the getProvenance() method.
· kCreatedFromMIME | Summary | Top |
public static final int kCreatedFromMIME
See the getProvenance() method.
Constructors |
· FileType | Summary | Top |
public FileType(FileExtension ext)
Initialize from a FileExtension object.
· FileType | Summary | Top |
public FileType(FinderInfo finfo)
Initialize from a FileType object.
Methods |
· getExtensions | Summary | Top |
public FileExtension[] getExtensions(int maxToReturn)
Returns an array of FileExtension's corresponding to this FileType.
If this object was created from an extension, an array with length 1 is returned containing the extension, and the 'maxToReturn' argument is ignored.
Otherwise, an array is returned containing FinderInfo objects which correspond to the extension used to initialize this object. The 'maxToReturn' argument is used a hint; the actual array size may be larger or smaller than this. This method may return null if no matches could be found.
· getFinderInfos | Summary | Top |
public FinderInfo[] getFinderInfos(int maxToReturn)
Returns an array of FinderInfo's corresponding to this FileType.
If this object was created from a FinderInfo object, an array with length 1 is returned containing that object, and the 'maxToReturn' argument is ignored.
Otherwise, an array is returned containing FileExtension objects which correspond to the FinderInfo object used to initialize this object. The 'maxToReturn' argument is used a hint; the actual array size may be larger or smaller than this. This method may return null if no matches could be found.
· flushCachedData | Summary | Top |
public void flushCachedData()
Flush any cached data. This method can be used after, for instance, a new application has been installed on the user's system.
· getProvenance | Summary | Top |
public int getProvenance()
Returns how this object was created, one of the following three values: kCreatedFromExt, kCreatedFromFTAC, or kCreatedFromMIME.
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7