org.apache.directory.shared.asn1.util
Class BooleanDecoder

java.lang.Object
  extended by org.apache.directory.shared.asn1.util.BooleanDecoder

public class BooleanDecoder
extends java.lang.Object

Parse and decode a Boolean value.

Version:
$Rev: 912399 $, $Date: 2010-02-21 21:52:31 +0100 (Sun, 21 Feb 2010) $
Author:
Apache Directory Project

Constructor Summary
BooleanDecoder()
           
 
Method Summary
static boolean parse(Value value)
          Parse a byte buffer and send back a booelan.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanDecoder

public BooleanDecoder()
Method Detail

parse

public static boolean parse(Value value)
                     throws BooleanDecoderException
Parse a byte buffer and send back a booelan.

Parameters:
value - The byte buffer to parse
Returns:
A boolean.
Throws:
BooleanDecoderException - Thrown if the byte stream does not contains a boolean


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.