org.apache.directory.shared.asn1.util
Class LongDecoder
java.lang.Object
org.apache.directory.shared.asn1.util.LongDecoder
public class LongDecoder
- extends Object
Parse and decode a Long value.
- Version:
- $Rev: 664290 $, $Date: 2008-06-07 08:28:06 +0200 (Sat, 07 Jun 2008) $
- Author:
- Apache Directory Project
|
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 |
LongDecoder
public LongDecoder()
parse
public static long parse(Value value,
long min,
long max)
throws LongDecoderException
- Parse a byte buffer and send back an long, controlling that this number
is in a specified interval.
- Parameters:
value - The byte buffer to parsemin - Lowest value allowed, includedmax - Highest value allowed, included
- Returns:
- An integer
- Throws:
LongDecoderException - Thrown if the byte stream does not contains an integer
parse
public static long parse(Value value)
throws LongDecoderException
- Parse a byte buffer and send back an integer
- Parameters:
value - The byte buffer to parse
- Returns:
- An integer
- Throws:
IntegerDecoderException - Thrown if the byte stream does not contains an integer
LongDecoderException
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.