public Packet getNextPacket ( ) { Packet parsedPacket = parseNextPacketFromPdml ( ) ; if ( parsedPacket == null ) { // All packets have been read return null ; } parsedPacket = addTcpdumpInfoToPacket ( parsedPacket ) ; return parsedPacket ; }
Returns the next Packet that can be parsed or null if all packets have been read