org.apache.mina.filter.codec.asn1
Class Asn1CodecEncoder
java.lang.Object
org.apache.mina.filter.codec.asn1.Asn1CodecEncoder
- All Implemented Interfaces:
- ProtocolEncoder
public class Asn1CodecEncoder
- extends Object
- implements ProtocolEncoder
Adapts StatefulEncoder
to MINA ProtocolEncoder
- Version:
- $Rev: 391231 $, $Date: 2006-04-04 15:21:55 +0900 (Tue, 04 Apr 2006) $,
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Asn1CodecEncoder
public Asn1CodecEncoder(StatefulEncoder encoder)
encode
public void encode(IoSession session,
Object message,
ProtocolEncoderOutput out)
throws EncoderException
- Description copied from interface:
ProtocolEncoder
- Encodes higher-level message objects into binary or protocol-specific data.
MINA invokes
ProtocolEncoder.encode(IoSession, Object, ProtocolEncoderOutput)
method with message which is popped from the session write queue, and then
the encoder implementation puts encoded ByteBuffer
s into
ProtocolEncoderOutput
.
- Specified by:
encode
in interface ProtocolEncoder
- Throws:
EncoderException
dispose
public void dispose(IoSession session)
throws Exception
- Description copied from interface:
ProtocolEncoder
- Releases all resources related with this encoder.
- Specified by:
dispose
in interface ProtocolEncoder
- Throws:
Exception
- if failed to dispose all resources