public class MessageLength extends Object implements Serializable
MessageLength
object contains information about the
length of a message and the length of its header.Constructor and Description |
---|
MessageLength(int headerLength,
int payloadLength)
Constructs a MessageLength object.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeaderLength()
Returns the length of the header.
|
int |
getMessageLength()
Returns the total message length (header+payload).
|
int |
getPayloadLength()
Returns the length of the payload.
|
String |
toString() |
public MessageLength(int headerLength, int payloadLength)
headerLength
- the length in bytes of the message header.payloadLength
- the length of the payload.public int getPayloadLength()
public int getHeaderLength()
public int getMessageLength()
getHeaderLength()
and getPayloadLength()
.Copyright © 2019 SNMP4J.org. All rights reserved.