Class IllegalSctpChunk
java.lang.Object
org.pcap4j.packet.IllegalSctpChunk
- All Implemented Interfaces:
Serializable, SctpPacket.SctpChunk
Illegal SCTP Chunk
- Since:
- pcap4j 1.6.6
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private static final longprivate final SctpChunkType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIllegalSctpChunk(byte[] rawData, int offset, int length) privateIllegalSctpChunk(IllegalSctpChunk.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getType()inthashCode()intlength()static IllegalSctpChunknewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
type
-
rawData
private final byte[] rawData
-
-
Constructor Details
-
IllegalSctpChunk
private IllegalSctpChunk(byte[] rawData, int offset, int length) -
IllegalSctpChunk
-
-
Method Details
-
newInstance
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new UnknownSctpChunk object.
-
getType
- Specified by:
getTypein interfaceSctpPacket.SctpChunk- Returns:
- type
-
length
public int length()- Specified by:
lengthin interfaceSctpPacket.SctpChunk- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceSctpPacket.SctpChunk- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
hashCode
-
equals
-