org.apache.directory.shared.ldap.codec.extended.operations
Class GracefulDisconnectDecoder

java.lang.Object
  extended byorg.apache.directory.shared.asn1.ber.Asn1Decoder
      extended byorg.apache.directory.shared.ldap.codec.extended.operations.GracefulDisconnectDecoder
All Implemented Interfaces:
org.apache.directory.shared.asn1.ber.tlv.ITLVBerDecoderMBean

public class GracefulDisconnectDecoder
extends org.apache.directory.shared.asn1.ber.Asn1Decoder

A decoder for GracefulDisconnects.

Author:
Apache Directory Project

Constructor Summary
GracefulDisconnectDecoder()
           
 
Method Summary
 org.apache.directory.shared.asn1.Asn1Object decode(byte[] stream)
          Decode a PDU which must contain a GracefulDisconnect extended operation.
 
Methods inherited from class org.apache.directory.shared.asn1.ber.Asn1Decoder
allowIndefiniteLength, decode, disallowIndefiniteLength, getMaxLengthLength, getMaxTagLength, isIndefiniteLengthAllowed, setMaxLengthLength, setMaxTagLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GracefulDisconnectDecoder

public GracefulDisconnectDecoder()
Method Detail

decode

public org.apache.directory.shared.asn1.Asn1Object decode(byte[] stream)
                                                   throws org.apache.directory.shared.asn1.codec.DecoderException
Decode a PDU which must contain a GracefulDisconnect extended operation. Note that the stream of bytes much contain a full PDU, not a partial one.

Parameters:
stream - The bytes to be decoded
Returns:
An GracefulDisconnect object
Throws:
org.apache.directory.shared.asn1.codec.DecoderException - If the decoding failed


Copyright © 2003-2006 . All Rights Reserved.