com.sun.grizzly.smart
Class SmartCodec<K>
java.lang.Object
com.sun.grizzly.smart.SmartCodec<K>
- All Implemented Interfaces:
- Codec<Buffer,K>
public class SmartCodec<K>
- extends Object
- implements Codec<Buffer,K>
Smart Codec, which is able to encode/decode custom protocol message
by their class structure.
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmartCodec
public SmartCodec(Class<K> clazz)
SmartCodec
public SmartCodec(Transformer<Buffer,K> decoder,
Transformer<K,Buffer> encoder)
getDecoder
public Transformer<Buffer,K> getDecoder()
- Specified by:
getDecoder in interface Codec<Buffer,K>
getEncoder
public Transformer<K,Buffer> getEncoder()
- Specified by:
getEncoder in interface Codec<Buffer,K>
Copyright © 2009 SUN Microsystems. All Rights Reserved.