Class FileVista


  • public class FileVista
    extends FileBase
    Author:
    pandyan Vista format reader and writer Spec: http://static.cbs.mpg.de/lipsia/START/index3.html 2/1/2011
    • Field Detail

      • EXTENSIONS

        public static final java.lang.String[] EXTENSIONS
        The extensions of VISTA file.
      • offset

        private long offset
        offset to image data
      • fileName

        private java.lang.String fileName
        file name and file dir
      • fileDir

        private java.lang.String fileDir
        file name and file dir
    • Constructor Detail

      • FileVista

        public FileVista​(java.lang.String fileName,
                         java.lang.String fileDir)
        constructor
        Parameters:
        fileName -
        fileDir -
    • Method Detail

      • readHeader

        public boolean readHeader​(java.lang.String imageFileName,
                                  java.lang.String fileDir)
                           throws java.io.IOException
        reads the header
        Parameters:
        imageFileName -
        fileDir -
        Returns:
        boolean - if header could be read
        Throws:
        java.io.IOException
      • readImage

        public ModelImage readImage()
                             throws java.io.IOException,
                                    java.lang.OutOfMemoryError
        reads the image
        Returns:
        Throws:
        java.io.IOException
        java.lang.OutOfMemoryError
      • writeHeader

        public boolean writeHeader​(ModelImage image,
                                   FileRaw rawFile,
                                   java.util.ArrayList<javax.swing.JTextField> vistaParamFields)
                            throws java.io.IOException
        writes the header
        Parameters:
        image -
        rawFile -
        vistaParamFields -
        Returns:
        Throws:
        java.io.IOException
      • writeImage

        public void writeImage​(ModelImage image,
                               FileWriteOptions options,
                               java.util.ArrayList<javax.swing.JTextField> vistaParamFields)
                        throws java.io.IOException
        writes the image
        Parameters:
        image -
        options -
        vistaParamFields -
        Throws:
        java.io.IOException