|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.util.LongDecoder
public class LongDecoder
Parse and decode a Long value.
| Constructor Summary | |
|---|---|
LongDecoder()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongDecoder()
| Method Detail |
|---|
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, included
LongDecoderException - Thrown if the byte stream does not contains an integer
public static long parse(Value value)
throws LongDecoderException
value - The byte buffer to parse
IntegerDecoderException - Thrown if the byte stream does not contains an integer
LongDecoderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||