docs: def close (self):
          """Closes this :class:``PCapStream`` by closing the underlying Python
          stream."""
          if self._stream:
              values = ( self._total.nbytes,
                         self._total.npackets,
                         int( math.ceil(self._total.nseconds) ),
                         self._filename )
  
              if self._dryrun:
                  msg = 'Would write %d bytes, %d packets, %d seconds to %s.'
              else:
                  msg = 'Wrote %d bytes, %d packets, %d seconds to %s.'
                  self._stream.close()
  
              log.info(msg % values)
  
              self._filename  = None
              self._startTime = None
              self._stream    = None
              self._total     = PCapFileStats(0, 0, 0)