public class IntegerDecoder extends Object
Constructor and Description |
---|
IntegerDecoder() |
public static int parse(Value value, int min, int max) throws IntegerDecoderException
value
- The byte buffer to parsemin
- Lowest value allowed, includedmax
- Highest value allowed, includedIntegerDecoderException
- Thrown if the byte stream does not contains an integerpublic static int parse(Value value) throws IntegerDecoderException
value
- The byte buffer to parseIntegerDecoderException
- Thrown if the byte stream does not contains an integerCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.