public final class LongDecoder extends Object
| Modifier and Type | Field and Description |
|---|---|
private static long[] |
MASK
A mask used to get only the necessary bytes
|
| Modifier | Constructor and Description |
|---|---|
private |
LongDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static long |
parse(BerValue value)
Parse a byte buffer and send back an integer
|
static long |
parse(BerValue value,
long min,
long max)
Parse a byte buffer and send back an long, controlling that this number
is in a specified interval.
|
static long |
parseLong(BerValue value)
Helper method used to parse the long.
|
public static long parse(BerValue 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(BerValue value) throws LongDecoderException
value - The byte buffer to parseLongDecoderException - Thrown if the byte stream does not contains an integerpublic static long parseLong(BerValue value) throws LongDecoderException
value - The value to parse to a longLongDecoderException - If we failed to decode a longCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.