Class FileJSON


  • public class FileJSON
    extends FileBase
    • Field Detail

      • endianess

        private boolean endianess
        DOCUMENT ME!
      • file

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

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

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

        private ModelLUT[] LUT
        DOCUMENT ME!
    • Constructor Detail

      • FileJSON

        public FileJSON​(java.lang.String fileName,
                        java.lang.String fileDir)
                 throws java.io.IOException
        JSON reader/writer constructor.
        Parameters:
        fileName - file name
        fileDir - file directory
        Throws:
        java.io.IOException - if there is an error making the file
    • Method Detail

      • finalize

        public void finalize()
        Prepares this class for cleanup. Calls the finalize method for existing elements, closes any open files and sets other elements to null.
        Overrides:
        finalize in class FileBase
      • getModelLUTArray

        public ModelLUT[] getModelLUTArray()
        returns LUT if defined.
        Returns:
        the LUT if defined else it is null
      • readImage

        public ModelImage[] readImage()
                               throws java.io.IOException
        reads the JSON file header and data.
        Returns:
        DOCUMENT ME!
        Throws:
        java.io.IOException - if there is an error reading the file
      • 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