Class PDBFileFilter

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

public final class PDBFileFilter extends FileFilter
The PDBFileFilter class is used to choose a Protein Databank (*.PDB) file.
Since:
1.0
Author:
Michael J. Schnieders
  • Constructor Details

    • PDBFileFilter

      public PDBFileFilter()
      Public Constructor.
  • Method Details

    • isPDB

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

      This method return true if the file is a directory or Protein Databank File (*.PDB).

      Parameters:
      file - The File to examine.
      Returns:
      Returns true if this a PDB file.
    • accept

      public boolean accept(File file)

      This method return true if the file is a directory or Protein Databank File (*.PDB).

      Specified by:
      accept in class FileFilter
    • acceptDeep

      public boolean acceptDeep(File file)
      acceptDeep Accepts a PDB file if it finds at least one parseable ATOM line.
      Parameters:
      file - a File object.
      Returns:
      Whether a valid PDB file.
    • getDescription

      public String getDescription()

      Provides a description of the PDBFileFilter.

      Specified by:
      getDescription in class FileFilter