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.FileExtension
java.lang.Object
   |
   +----com.jconfig.FileExtension

  Summary

public class  FileExtension
     extends java.lang.Object
     implements com.jconfig.FileCharacteristic, 
                java.lang.Cloneable
{
          // Fields 2
     private static final String copyrightString;
     private String internalExt;

          // Constructors 1
     public FileExtension(String);

          // Methods 3
     public String getString();
     public boolean isMatch(FileCharacteristic);
     public String toString();
}

Represents a Windows-style file extension.

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


  Cross Reference

Returned By:
CEVFinderInfoFinder.getExtensions(), ConfigEntry.getFileExtension(), ConfigListFile.findMatches(), ConfigList.findMatches(), FileRegistryI.findExtensions(), FileRegistryPlain.findExtensions(), FileRegistry.findExtensions(), FileType.getExtensions(), IConfigEntryBinary.getFileExtension(), FileRegistryMRJ.findExtensions(), IConfigEntryMRJ.getFileExtension(), IConfigMRJ.findMatches(), FileRegistryNix.findExtensions(), FileRegistryMSVM.findExtensions()





  Fields

· copyrightString

Summary  |  Top
   private static final String copyrightString


· internalExt

Summary  |  Top
   private String internalExt


  Constructors

· FileExtension

Summary  |  Top

   public FileExtension(String str) 

The argument 'str' should contain the extension alone, complete with a '.' character, e.g., ".txt"



  Methods

· isMatch

Summary  |  Top
   public boolean isMatch(FileCharacteristic fc) 

If 'fc' is a FileExtension object, and it has the same string value (e.g., ".txt") as this object, return true. Otherwise, returns false. If either this object or 'fc' are ".", returns false. Wildcards are not fully supported.

Implements:
isMatch in interface FileCharacteristic


· getString

Summary  |  Top
   public String getString() 

Returns the extension, including the '.' character.



· 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