Class FilePGM

java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FilePGM

public class FilePGM extends FileBase
  • Field Details

    • file

      private File file
      DOCUMENT ME!
    • fileDir

      private String fileDir
      DOCUMENT ME!
    • fileInfo

      private FileInfoPGM fileInfo
      DOCUMENT ME!
    • fileName

      private String fileName
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • progressBar

      private ViewJProgressBar progressBar
      DOCUMENT ME!
  • Constructor Details

    • FilePGM

      public FilePGM(String fName, String fDir)
      File Portable Greymap Utilities reader/writer constructor.
      Parameters:
      fName - file name
      fDir - file directory
  • Method Details

    • readImage

      public ModelImage readImage() throws IOException
      Throws:
      IOException
    • readLine

      private String readLine() throws IOException
      readLine() - reads a line of the file and strips comments indicated by the # symbol.
      Returns:
      the line read in
      Throws:
      IOException - if there is an error reading the file
    • retrieveValues

      private String[] retrieveValues(String inString)
      DOCUMENT ME!
      Parameters:
      inString - DOCUMENT ME!
      Returns:
      DOCUMENT ME!