Hi,
I am having a difficulty in mke this cast? Can I do something? Some tip ?
*code*
ByteArrayDecoder extends CumulativeProtocolDecoder {
protected boolean doDecode(IoSession session, ByteBuffer in,
ProtocolDecoderOutput out) throws Exception {
if (in instanceof ByteBuffer) {
int len = in.limit();
byte[] stream = new byte[len];
//TODO
stream = in.array(); // Why ?
out.write(stream);
return true;
}else {
return false.
}
}
*console*:
org.apache.mina.filter.codec.ProtocolDecoderException:
java.lang.UnsupportedOperationException
Thanks
--
________________________
Brenno Hayden F. Dantas