Class Grib2JpegDecoder


  • public class Grib2JpegDecoder
    extends Object
    Adaptation of jj2000.j2k.decoder.Decoder, in order to read input from memory.
    • Method Detail

      • getExitCode

        public int getExitCode()
        Returns the exit code of the class. This is only initialized after the constructor and when the run method returns.
        Returns:
        The exit code of the constructor and the run() method.
      • hasSignedProblem

        public boolean hasSignedProblem()
      • decode

        public void decode​(byte[] buf)
                    throws IOException
        Runs the decoder. After completion the exit code is set, a non-zero value indicates that an error occurred.
        Throws:
        IOException
        See Also:
        getExitCode()
      • getPackBytes

        public int getPackBytes()
        Return the packBytes ie number bytes / number 1,2 or 4
      • getGdata

        public int[] getGdata()
        Return the "raw" decoded data as an int array
      • getAllParameters

        public static String[][] getAllParameters()
        Returns all the parameters used in the decoding chain. It calls parameter from each module and store them in one array (one row per parameter and 4 columns).
        Returns:
        All decoding parameters