/** * {@inheritDoc} */ @Override public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception { IoBuffer product; // When input contained only terminator rather than actual data... if (buffer == null) { product = IoBuffer.allocate(0); } else { product = buffer.flip(); buffer = null; } return finishDecode(product, out); }
if (isTerminator(b)) { terminatorPos = i; break; return finishDecode(product, out);
if (isTerminator(b)) { terminatorPos = i; break; return finishDecode(product, out);
if (isTerminator(b)) { terminatorPos = i; break; return finishDecode(product, out);
/** * {@inheritDoc} */ @Override public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception { IoBuffer product; // When input contained only terminator rather than actual data... if (buffer == null) { product = IoBuffer.allocate(0); } else { product = buffer.flip(); buffer = null; } return finishDecode(product, out); }
/** * {@inheritDoc} */ public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception { IoBuffer product; // When input contained only terminator rather than actual data... if (buffer == null) { product = IoBuffer.allocate(0); } else { product = buffer.flip(); buffer = null; } return finishDecode(product, out); }