Package peppy :: Package lib :: Module bufferedreader :: Class WindowReader
[frames] | no frames]

Class WindowReader

object --+
         |
        WindowReader

File-like object wrapper that restricts file read operations to a window region within the file.

The window subset is specified by an offset and a length within the containing file.

Instance Methods
 
__init__(self, fh, offset, length)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
seek(self, pos, whence=0)
 
tell(self)
 
read(self, size=None)
 
close(self)

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

Properties

Inherited from object: __class__

Method Details

__init__(self, fh, offset, length)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)