Module tarfile :: Class _BZ2Proxy
[hide private]
[frames] | no frames]

type _BZ2Proxy

object --+
         |
        _BZ2Proxy

Small proxy class that enables external file object support for "r:bz2" and "w:bz2" modes. This is actually a workaround for a limitation in bz2 module's BZ2File class which (unlike gzip.GzipFile) has no support for a file object argument.

Instance Methods [hide private]
 
__init__(self, fileobj, mode)
 
init(self)
 
read(self, size)
 
seek(self, pos)
 
tell(self)
 
write(self, data)
 
close(self)
Class Variables [hide private]
  blocksize = 16384
Method Details [hide private]

__init__(self, fileobj, mode)
(Constructor)

 
Overrides: object.__init__
(inherited documentation)