Class MultiLineDecoder
- java.lang.Object
- 
- org.apache.mina.filter.codec.ProtocolDecoderAdapter
- 
- org.apache.mina.filter.codec.CumulativeProtocolDecoder
- 
- org.opennms.netmgt.provision.support.codec.MultiLineDecoder
 
 
 
- 
- All Implemented Interfaces:
- org.apache.mina.filter.codec.ProtocolDecoder
 - Direct Known Subclasses:
- MultilineHttpStatusResponseDecoder
 
 public class MultiLineDecoder extends org.apache.mina.filter.codec.CumulativeProtocolDecoderMultiLineDecoder class. - Version:
- $Id: $
- Author:
- thedesloge
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringCURRENT_RESPONSE
 - 
Constructor SummaryConstructors Constructor Description MultiLineDecoder(java.nio.charset.Charset charset, java.lang.String multilineIndicator)Constructor for MultiLineDecoder.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckIndicator(org.apache.mina.core.buffer.IoBuffer in)checkIndicatorprotected booleandoDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)java.nio.charset.CharsetgetCharset()getCharsetjava.lang.StringgetMultilineIndicator()getMultilineIndicatorvoidsetCharset(java.nio.charset.Charset charset)setCharset
 
- 
- 
- 
Method Detail- 
doDecodeprotected boolean doDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out) throws java.lang.Exception- Specified by:
- doDecodein class- org.apache.mina.filter.codec.CumulativeProtocolDecoder
- Throws:
- java.lang.Exception
 
 - 
checkIndicatorprotected boolean checkIndicator(org.apache.mina.core.buffer.IoBuffer in) throws java.nio.charset.CharacterCodingExceptioncheckIndicator - Parameters:
- in- a- IoBufferobject.
- Returns:
- a boolean.
- Throws:
- java.nio.charset.CharacterCodingException- if any.
 
 - 
setCharsetpublic void setCharset(java.nio.charset.Charset charset) setCharset - Parameters:
- charset- a- Charsetobject.
 
 - 
getCharsetpublic java.nio.charset.Charset getCharset() getCharset - Returns:
- a Charsetobject.
 
 - 
getMultilineIndicatorpublic java.lang.String getMultilineIndicator() getMultilineIndicator - Returns:
- a Stringobject.
 
 
- 
 
-