public final class UnknownSctpChunk extends Object implements SctpPacket.SctpChunk
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 / \ \ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Modifier and Type | Class and Description |
---|---|
static class |
UnknownSctpChunk.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
UnknownSctpChunk.Builder |
getBuilder() |
byte |
getFlags() |
short |
getLength() |
int |
getLengthAsInt() |
byte[] |
getPadding() |
byte[] |
getRawData() |
SctpChunkType |
getType() |
byte[] |
getValue() |
int |
hashCode() |
int |
length() |
static UnknownSctpChunk |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
public static UnknownSctpChunk newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public SctpChunkType getType()
getType
in interface SctpPacket.SctpChunk
public byte getFlags()
public short getLength()
public int getLengthAsInt()
public byte[] getValue()
public byte[] getPadding()
public byte[] getRawData()
getRawData
in interface SctpPacket.SctpChunk
public int length()
length
in interface SctpPacket.SctpChunk
public UnknownSctpChunk.Builder getBuilder()
Copyright © 2011–2018 Pcap4J.org. All rights reserved.