All Packages  This Package  Class Hierarchy  Class Search  Index

Class COM.tolstoy.jconfig.FileExtension
java.lang.Object
   |
   +----COM.tolstoy.jconfig.FileExtension

  Summary

public class  FileExtension
     extends java.lang.Object
     implements COM.tolstoy.jconfig.FileCharacteristic
{
          // 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,1998 Samizdat Productions. All Rights Reserved.


  Cross Reference

Returned By:
FileSpecifier.getFileExtension(), PluginI.getFileExtension(), ConfigEntry.getFileExtension(), ConfigListFile.findMatches(), ConfigList.findMatches(), FileRegistryI.findExtensions(), FileRegistry.findExtensions(), FileType.getExtensions()





  Constructors

· FileExtension

Summary  |  Top
   public FileExtension(String str) 

The argument 'intExt' 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