Package org.apache.qpid.protonj2.codec
Interface DecoderState
- 
- All Known Implementing Classes:
- ProtonDecoderState
 
 public interface DecoderStateRetains state of decode either between calls or across decode iterations
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringdecodeUTF8(ProtonBuffer buffer, int length)Given a set of UTF-8 encoded bytes decode and return the String that represents that UTF-8 value.DecodergetDecoder()DecoderStatereset()Resets any intermediate state back to default values.
 
- 
- 
- 
Method Detail- 
resetDecoderState reset() Resets any intermediate state back to default values.- Returns:
- this DecoderStateinstance.
 
 - 
getDecoderDecoder getDecoder() - Returns:
- the decoder that created this state object
 
 - 
decodeUTF8String decodeUTF8(ProtonBuffer buffer, int length) throws DecodeException Given a set of UTF-8 encoded bytes decode and return the String that represents that UTF-8 value.- Parameters:
- buffer- A buffer containing the UTF-8 encoded bytes to be decoded.
- length- The number of bytes in the passed buffer that comprise the UTF-8 encoding.
- Returns:
- a String that represents the UTF-8 decoded bytes.
- Throws:
- DecodeException- if an error occurs while decoding the string value.
 
 
- 
 
-