public interface MessageLengthDecoder
MessageLengthDecoder
needs to be implemented for connection
oriented transport mappings, because those transport mappings have no message
boundaries. To determine the message length, the message header is decoded
in a protocol specific way.Modifier and Type | Method and Description |
---|---|
MessageLength |
getMessageLength(ByteBuffer buf)
Returns the total message length to read (including header) and
the actual header length.
|
int |
getMinHeaderLength()
Returns the minimum length of the header to be decoded.
|
int getMinHeaderLength()
MessageLength getMessageLength(ByteBuffer buf) throws IOException
buf
- a ByteBuffer with a minimum of getMinHeaderLength()
.IOException
- if the header cannot be decoded.Copyright © 2020 SNMP4J.org. All rights reserved.