|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageLengthDecoder
The 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.
Method Summary | |
---|---|
MessageLength |
getMessageLength(java.nio.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. |
Method Detail |
---|
int getMinHeaderLength()
MessageLength getMessageLength(java.nio.ByteBuffer buf) throws java.io.IOException
buf
- a ByteBuffer with a minimum of getMinHeaderLength()
.
java.io.IOException
- if the header cannot be decoded.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |