public final class LongDecoder extends Object
Constructor and Description |
---|
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 LongDecoder()
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
LongDecoderException
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.