Class XYZFileFilter


  • public final class XYZFileFilter
    extends FileFilter
    The XYZFileFilter class is used to choose a TINKER Cartesian Coordinate (*.XYZ) file.
    Since:
    1.0
    Author:
    Michael J. Schnieders
    • Constructor Detail

      • XYZFileFilter

        public XYZFileFilter()
        Public Constructor.
    • Method Detail

      • isXYZ

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

        This method return true if the file is a directory or TINKER Cartesian coordinate (*.XYZ) file.

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

        public boolean accept​(File file)

        This method return true if the file is a directory or TINKER Cartesian coordinate (*.XYZ) file.

        Specified by:
        accept in class FileFilter
      • acceptDeep

        public boolean acceptDeep​(File file)
        acceptDeep
        Parameters:
        file - a File object.
        Returns:
        a boolean.