|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.transport.MessageLength
public class MessageLength
The MessageLength
object contains information about the
length of a message and the length of its header.
Constructor Summary | |
---|---|
MessageLength(int headerLength,
int payloadLength)
Constructs a MessageLength object. |
Method Summary | |
---|---|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageLength(int headerLength, int payloadLength)
headerLength
- the length in bytes of the message header.payloadLength
- the length of the payload.Method Detail |
---|
public int getPayloadLength()
public int getHeaderLength()
public int getMessageLength()
getHeaderLength()
and getPayloadLength()
.public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |