Package org.pcap4j.packet
Interface SctpPacket.SctpChunk
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
IllegalSctpChunk
,UnknownSctpChunk
- Enclosing class:
- SctpPacket
public static interface SctpPacket.SctpChunk extends java.io.Serializable
The interface representing an SCTP Chunk Field. If you usePropertiesBasedPacketFactory
, classes which implement this interface must implement the following method:public static SctpChunk newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
- Since:
- pcap4j 1.6.6
- Author:
- Kaito Yamada
- See Also:
- RFC 4960
-
-
Method Summary
Modifier and Type Method Description byte[]
getRawData()
SctpChunkType
getType()
int
length()
-
-
-
Method Detail
-
getType
SctpChunkType getType()
- Returns:
- type
-
length
int length()
- Returns:
- length
-
getRawData
byte[] getRawData()
- Returns:
- raw data
-
-