Class UnknownSctpChunk
java.lang.Object
org.pcap4j.packet.UnknownSctpChunk
- All Implemented Interfaces:
Serializable, SctpPacket.SctpChunk
Unknown SCTP Chunk
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Chunk Type | Chunk Flags | Chunk Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ \ \ / Chunk Value / \ \ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Since:
- pcap4j 1.6.6
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteprivate final shortprivate final byte[]private static final longprivate final SctpChunkTypeprivate final byte[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnknownSctpChunk(byte[] rawData, int offset, int length) privateUnknownSctpChunk(UnknownSctpChunk.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbytegetFlags()shortintbyte[]byte[]getType()byte[]getValue()inthashCode()intlength()static UnknownSctpChunknewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
type
-
flags
private final byte flags -
length
private final short length -
value
private final byte[] value -
padding
private final byte[] padding
-
-
Constructor Details
-
UnknownSctpChunk
- Throws:
IllegalRawDataException
-
UnknownSctpChunk
-
-
Method Details
-
newInstance
public static UnknownSctpChunk newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException 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.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getType
- Specified by:
getTypein interfaceSctpPacket.SctpChunk- Returns:
- type
-
getFlags
public byte getFlags()- Returns:
- flags
-
getLength
public short getLength()- Returns:
- length
-
getLengthAsInt
public int getLengthAsInt()- Returns:
- length
-
getValue
public byte[] getValue()- Returns:
- value
-
getPadding
public byte[] getPadding()- Returns:
- padding
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceSctpPacket.SctpChunk- Returns:
- raw data
-
length
public int length()- Specified by:
lengthin interfaceSctpPacket.SctpChunk- Returns:
- length
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
hashCode
-
equals
-