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