Class FileMap

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

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

    • file

      private File file
      DOCUMENT ME!
    • fileInfo

      private FileInfoBase fileInfo
      DOCUMENT ME!
  • Constructor Details

    • FileMap

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

    • readImage

      public void readImage(ModelImage image, int offset) throws 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:
      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!