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 use PropertiesBasedPacketFactory, 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 Detail

      • length

        int length()
        Returns:
        length
      • getRawData

        byte[] getRawData()
        Returns:
        raw data