public class IntegerDecoder extends Object
| Constructor and Description |
|---|
IntegerDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static int |
parse(Value value)
Parse a byte buffer and send back an integer
|
static int |
parse(Value value,
int min,
int max)
Parse a byte buffer and send back an integer, controling that this number
is in a specified interval.
|
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–2016 The Apache Software Foundation. All rights reserved.