Class FileMap


  • public class FileMap
    extends FileBase
    Special for Benes.
    Version:
    0.1 Sept 2, 1997
    Author:
    Matthew J. McAuliffe, Ph.D.
    • Field Detail

      • file

        private java.io.File file
        DOCUMENT ME!
    • Constructor Detail

      • FileMap

        public FileMap​(java.lang.String fileName,
                       java.lang.String fileDir,
                       FileInfoBase fInfo,
                       int rwFlag)
                throws java.io.IOException
        Creates a new FileMap object.
        Parameters:
        fileName - DOCUMENT ME!
        fileDir - DOCUMENT ME!
        fInfo - DOCUMENT ME!
        rwFlag - DOCUMENT ME!
        Throws:
        java.io.IOException - DOCUMENT ME!
    • Method Detail

      • readImage

        public void readImage​(ModelImage image,
                              int offset)
                       throws java.io.IOException
        readImage - This method reads a raw chunk from a file.
        Parameters:
        image - the ModelImage to read the image file into
        offset - the offset into the image file (from the end of the file)
        Throws:
        java.io.IOException - if there is an error reading the file
      • parseBuffer

        private void parseBuffer​(short[] buffer,
                                 ModelImage image)
        parseImage 03 00 or 00 03 is the delimiter.
        Parameters:
        buffer - DOCUMENT ME!
        image - DOCUMENT ME!