public class MultiLineDecoder
extends org.apache.mina.filter.codec.CumulativeProtocolDecoder
MultiLineDecoder class.
Modifier and Type | Field and Description |
---|---|
protected String |
CURRENT_RESPONSE |
Constructor and Description |
---|
MultiLineDecoder(Charset charset,
String multilineIndicator)
Constructor for MultiLineDecoder.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkIndicator(org.apache.mina.core.buffer.IoBuffer in)
checkIndicator
|
protected boolean |
doDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out) |
Charset |
getCharset()
getCharset
|
String |
getMultilineIndicator()
getMultilineIndicator
|
void |
setCharset(Charset charset)
setCharset
|
protected String CURRENT_RESPONSE
protected boolean doDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out) throws Exception
doDecode
in class org.apache.mina.filter.codec.CumulativeProtocolDecoder
Exception
protected boolean checkIndicator(org.apache.mina.core.buffer.IoBuffer in) throws CharacterCodingException
checkIndicator
in
- a IoBuffer
object.CharacterCodingException
- if any.public void setCharset(Charset charset)
setCharset
charset
- a Charset
object.Copyright © 2021. All rights reserved.