org.apache.mina.example.imagine.step1.codec
Class ImageRequestDecoder
java.lang.Object
org.apache.mina.filter.codec.ProtocolDecoderAdapter
org.apache.mina.filter.codec.CumulativeProtocolDecoder
org.apache.mina.example.imagine.step1.codec.ImageRequestDecoder
- All Implemented Interfaces:
- ProtocolDecoder
public class ImageRequestDecoder
- extends CumulativeProtocolDecoder
a decoder for ImageRequest
objects
- Author:
- Apache MINA Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageRequestDecoder
public ImageRequestDecoder()
doDecode
protected boolean doDecode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
throws Exception
- Description copied from class:
CumulativeProtocolDecoder
- Implement this method to consume the specified cumulative buffer and
decode its content into message(s).
- Specified by:
doDecode
in class CumulativeProtocolDecoder
in
- the cumulative buffer
- Returns:
- true if and only if there's more to decode in the buffer
and you want to have doDecode method invoked again.
Return false if remaining data is not enough to decode,
then this method will be invoked again when more data is cumulated.
- Throws:
Exception
- if cannot decode in.
Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.