|
|||||||||||
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
Parse and decode an Integer value.
Field Summary | |
private static int[] |
MASK
|
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 |
Field Detail |
private static final int[] MASK
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 integerpublic 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 |