Class ARCFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
ffx.potential.parsers.ARCFileFilter

public final class ARCFileFilter extends FileFilter
The ARCFileFilter class is used to choose a TINKER Archive (*.ARC).
Since:
1.0
Author:
Michael J. Schnieders
  • Constructor Details

    • ARCFileFilter

      public ARCFileFilter()
      Default Constructor
  • Method Details

    • isARC

      public static boolean isARC(File file)
      This is a static version of the accept method.

      This method return true if the file is a directory or TINKER Archive (*.ARC).

      Parameters:
      file - The File to examine.
      Returns:
      Returns true if this an ARC file.
    • accept

      public boolean accept(File file)

      This method return true if the file is a directory or TINKER Archive (*.ARC).

      Specified by:
      accept in class FileFilter
    • getDescription

      public String getDescription()

      Provides a description of this FileFilter

      Specified by:
      getDescription in class FileFilter