Class StaticSctpPortPacketFactory

  • All Implemented Interfaces:
    org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.Packet,​org.pcap4j.packet.namednumber.SctpPort>

    public final class StaticSctpPortPacketFactory
    extends java.lang.Object
    implements org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.Packet,​org.pcap4j.packet.namednumber.SctpPort>
    Since:
    pcap4j 1.6.6
    Author:
    Jeff Myers, Kaito Yamada
    • Method Summary

      Modifier and Type Method Description
      static StaticSctpPortPacketFactory getInstance()  
      org.pcap4j.packet.Packet newInstance​(byte[] rawData, int offset, int length)
      This method is a variant of newInstance(byte[], int, int, SctpPort...) and exists only for performance reason.
      org.pcap4j.packet.Packet newInstance​(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.SctpPort number)
      This method is a variant of newInstance(byte[], int, int, SctpPort...) and exists only for performance reason.
      org.pcap4j.packet.Packet newInstance​(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.SctpPort... numbers)  
      org.pcap4j.packet.Packet newInstance​(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.SctpPort number1, org.pcap4j.packet.namednumber.SctpPort number2)
      This method is a variant of newInstance(byte[], int, int, SctpPort...) and exists only for performance reason.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static StaticSctpPortPacketFactory getInstance()
        Returns:
        the singleton instance of StaticSctpPortPacketFactory.
      • newInstance

        public org.pcap4j.packet.Packet newInstance​(byte[] rawData,
                                                    int offset,
                                                    int length)
        This method is a variant of newInstance(byte[], int, int, SctpPort...) and exists only for performance reason.
        Parameters:
        rawData - see PacketFactory.newInstance(byte[], int, int, N...).
        offset - see PacketFactory.newInstance(byte[], int, int, N...).
        length - see PacketFactory.newInstance(byte[], int, int, N...).
        Returns:
        see PacketFactory.newInstance(byte[], int, int, N...).
      • newInstance

        public org.pcap4j.packet.Packet newInstance​(byte[] rawData,
                                                    int offset,
                                                    int length,
                                                    org.pcap4j.packet.namednumber.SctpPort number)
        This method is a variant of newInstance(byte[], int, int, SctpPort...) and exists only for performance reason.
        Parameters:
        rawData - see PacketFactory.newInstance(byte[], int, int, N...).
        offset - see PacketFactory.newInstance(byte[], int, int, N...).
        length - see PacketFactory.newInstance(byte[], int, int, N...).
        number - see PacketFactory.newInstance(byte[], int, int, N...).
        Returns:
        see PacketFactory.newInstance(byte[], int, int, N...).
      • newInstance

        public org.pcap4j.packet.Packet newInstance​(byte[] rawData,
                                                    int offset,
                                                    int length,
                                                    org.pcap4j.packet.namednumber.SctpPort number1,
                                                    org.pcap4j.packet.namednumber.SctpPort number2)
        This method is a variant of newInstance(byte[], int, int, SctpPort...) and exists only for performance reason.
        Parameters:
        rawData - see PacketFactory.newInstance(byte[], int, int, N...).
        offset - see PacketFactory.newInstance(byte[], int, int, N...).
        length - see PacketFactory.newInstance(byte[], int, int, N...).
        number1 - see PacketFactory.newInstance(byte[], int, int, N...).
        number2 - see PacketFactory.newInstance(byte[], int, int, N...).
        Returns:
        see PacketFactory.newInstance(byte[], int, int, N...).
      • newInstance

        public org.pcap4j.packet.Packet newInstance​(byte[] rawData,
                                                    int offset,
                                                    int length,
                                                    org.pcap4j.packet.namednumber.SctpPort... numbers)
        Specified by:
        newInstance in interface org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.Packet,​org.pcap4j.packet.namednumber.SctpPort>