public abstract class AbstractCodecFilter<K,L> extends BaseFilter implements CodecFilter<K,L>
Constructor and Description |
---|
AbstractCodecFilter(Transformer<K,L> decoder,
Transformer<L,K> encoder) |
Modifier and Type | Method and Description |
---|---|
Transformer<K,L> |
getDecoder() |
Transformer<L,K> |
getEncoder() |
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will
become available for reading.
|
NextAction |
handleWrite(FilterChainContext ctx)
Execute a unit of processing work to be performed, when some data should
be written on channel.
|
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved
public AbstractCodecFilter(Transformer<K,L> decoder, Transformer<L,K> encoder)
public NextAction handleRead(FilterChainContext ctx) throws IOException
BaseFilter
Filter
may either complete the required processing and
return false, or delegate remaining processing to the next
Filter
in a FilterChain
containing this Filter
by returning true.handleRead
in interface Filter
handleRead
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public NextAction handleWrite(FilterChainContext ctx) throws IOException
BaseFilter
Filter
may either complete the required processing and
return false, or delegate remaining processing to the next
Filter
in a FilterChain
containing this Filter
by returning true.handleWrite
in interface Filter
handleWrite
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public Transformer<K,L> getDecoder()
getDecoder
in interface Codec<K,L>
public Transformer<L,K> getEncoder()
getEncoder
in interface Codec<K,L>
Copyright © 2015 Oracle Corporation. All rights reserved.