Class StaticIpV4TosFactory

  • All Implemented Interfaces:
    org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV4Packet.IpV4Tos,​org.pcap4j.packet.namednumber.NotApplicable>

    public final class StaticIpV4TosFactory
    extends java.lang.Object
    implements org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV4Packet.IpV4Tos,​org.pcap4j.packet.namednumber.NotApplicable>
    Since:
    pcap4j 0.9.16
    Author:
    Kaito Yamada
    • Method Summary

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

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

      • getInstance

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

        public org.pcap4j.packet.IpV4Packet.IpV4Tos newInstance​(byte[] rawData,
                                                                int offset,
                                                                int length)
        This method is a variant of newInstance(byte[], int, int, NotApplicable...) 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.IpV4Packet.IpV4Tos newInstance​(byte[] rawData,
                                                                int offset,
                                                                int length,
                                                                org.pcap4j.packet.namednumber.NotApplicable... numbers)
        Specified by:
        newInstance in interface org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV4Packet.IpV4Tos,​org.pcap4j.packet.namednumber.NotApplicable>