Class FilePPM

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

public class FilePPM extends FileBase
  • Field Details

    • file

      private File file
      DOCUMENT ME!
    • fileDir

      private String fileDir
      DOCUMENT ME!
    • fileInfo

      private FileInfoPPM fileInfo
      DOCUMENT ME!
    • fileName

      private String fileName
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
  • Constructor Details

    • FilePPM

      public FilePPM(String fName, String fDir)
      File Portable Pixmap 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!