Class PacketIterator

  • All Implemented Interfaces:
    java.util.Iterator<Packet>

    public final class PacketIterator
    extends java.lang.Object
    implements java.util.Iterator<Packet>
    Since:
    pcap4j 0.9.1
    Author:
    Kaito Yamada
    • Method Summary

      Modifier and Type Method Description
      boolean hasNext()  
      Packet next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • PacketIterator

        public PacketIterator​(Packet p)
        Parameters:
        p - p
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Packet>
      • next

        public Packet next()
        Specified by:
        next in interface java.util.Iterator<Packet>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Packet>
        Throws:
        java.lang.UnsupportedOperationException - always.