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

Class _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)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
init(self)
 
read(self, size)
 
seek(self, pos)
 
tell(self)
 
write(self, data)
 
close(self)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  blocksize = 16384
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fileobj, mode)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)