Class FilePGM

    • Field Detail

      • file

        private java.io.File file
        DOCUMENT ME!
      • fileDir

        private java.lang.String fileDir
        DOCUMENT ME!
      • fileName

        private java.lang.String fileName
        DOCUMENT ME!
    • Constructor Detail

      • FilePGM

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

      • readImage

        public ModelImage readImage()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readLine

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

        private java.lang.String[] retrieveValues​(java.lang.String inString)
        DOCUMENT ME!
        Parameters:
        inString - DOCUMENT ME!
        Returns:
        DOCUMENT ME!