public final class UnknownSctpChunk extends java.lang.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(java.lang.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.
|
java.lang.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.SctpChunkpublic byte getFlags()
public short getLength()
public int getLengthAsInt()
public byte[] getValue()
public byte[] getPadding()
public byte[] getRawData()
getRawData in interface SctpPacket.SctpChunkpublic int length()
length in interface SctpPacket.SctpChunkpublic UnknownSctpChunk.Builder getBuilder()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.