def fromtarfile(cls, tarfile):
        """Return the next TarInfo object from TarFile object
           tarfile.
        """
        buf = tarfile.fileobj.read(BLOCKSIZE)
        obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors)
        obj.offset = tarfile.fileobj.tell() - BLOCKSIZE
        return obj._proc_member(tarfile)
Return the next TarInfo object from TarFile object
           tarfile.
        
product/gradle-plugin/src/main/python/pip/_vendor/distlib/_backport/tarfile.py