public class LongDecoder extends Object
Constructor and Description |
---|
LongDecoder() |
Modifier and Type | Method and Description |
---|---|
static long |
parse(Value value)
Parse a byte buffer and send back an integer
|
static long |
parse(Value value,
long min,
long max)
Parse a byte buffer and send back an long, controlling that this number
is in a specified interval.
|
public static long parse(Value value, long min, long max) throws LongDecoderException
value
- The byte buffer to parsemin
- Lowest value allowed, includedmax
- Highest value allowed, includedLongDecoderException
- Thrown if the byte stream does not contains an integerpublic static long parse(Value value) throws LongDecoderException
value
- The byte buffer to parseIntegerDecoderException
- Thrown if the byte stream does not contains an integerLongDecoderException
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.