|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.protocols.ip.IPHeader.Option
org.opennms.protocols.ip.IPHeader.EndOfOptions
This class is used to represent the End-Of-Option list in the IP header. After this option, the option list is not processed any further.
Field Summary |
Fields inherited from class org.opennms.protocols.ip.IPHeader.Option |
CODE_END_OF_OPTION_LIST, CODE_LOOSE_SOURCE_ROUTE, CODE_ROUTE_RECORD, CODE_STRICT_SOURCE_ROUTE, m_code |
Constructor Summary | |
IPHeader.EndOfOptions()
Constructs a new End-Of-Options list instance that can be added or found in the IP header. |
Method Summary | |
(package private) int |
bytesRequired()
Returns the number of bytes requried to represent this option |
(package private) int |
writeBytes(byte[] dest,
int offset)
Converts the option to an array of bytes and writes those bytes in to the destiantion buffer. |
Methods inherited from class org.opennms.protocols.ip.IPHeader.Option |
getOptionClass, getOptionNumber, isOptionCopied |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IPHeader.EndOfOptions()
Method Detail |
int bytesRequired()
bytesRequired
in class IPHeader.Option
int writeBytes(byte[] dest, int offset)
writeBytes
in class IPHeader.Option
dest
- The destiantion buffer to write the bytesoffset
- The offset to start writing in the buffer
java.lang.ArrayIndexOutOfBounds
- Throws in there is insufficient space in the buffer.
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |