Class IntegerDecoder

    • Method Detail

      • parse

        public static int parse​(BerValue value,
                                int min,
                                int max)
                         throws IntegerDecoderException
        Parse a byte buffer and send back an integer, controlling that this number is in a specified interval.
        Parameters:
        value - The Value containing the byte[] to parse
        min - Lowest value allowed, included
        max - Highest value allowed, included
        Returns:
        An integer
        Throws:
        IntegerDecoderException - Thrown if the byte[] does not contains an integer