1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.mina.protocol;
20
21 /***
22 * Provides {@link ProtocolEncoder} and {@link ProtocolDecoder} which translates
23 * binary or protocol specific data into message object and vice versa.
24 * <p>
25 * Please refer to
26 * <a href="../../../../../xref-examples/org/apache/mina/examples/reverser/ReverseProtocolProvider.html"><code>ReverserProtocolProvider</code></a>
27 * example.
28 *
29 * @author Trustin Lee (trustin@apache.org)
30 * @version $Rev: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $
31 */
32 public interface ProtocolCodecFactory
33 {
34 /***
35 * Creates a new instance of {@link ProtocolEncoder} which encodes message
36 * objects into binary or protocol-specific data.
37 */
38 ProtocolEncoder newEncoder();
39
40 /***
41 * Creates a new instance of {@link ProtocolDecoder} which decodes binary or
42 * protocol-specific data into message objects.
43 */
44 ProtocolDecoder newDecoder();
45 }