Package buildbot :: Package steps :: Module transfer :: Class _FileReader
[hide private]
[frames] | no frames]

Class _FileReader

source code

 twisted.spread.jelly.Jellyable --+        
                                  |        
twisted.spread.flavors.Serializable --+    
                                      |    
   twisted.spread.flavors.Referenceable --+
                                          |
                                         _FileReader

Helper class that acts as a file-object with read access

Instance Methods [hide private]
 
__init__(self, fp) source code
string of bytes read from file
remote_read(self, maxlength)
Called from remote slave to read at most maxlength bytes of data
source code
 
remote_close(self)
Called by remote slave to state that no more data will be transfered
source code

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Class Variables [hide private]

Inherited from twisted.spread.flavors.Referenceable: __implemented__, __provides__, perspective

Method Details [hide private]

remote_read(self, maxlength)

source code 

Called from remote slave to read at most maxlength bytes of data

Parameters:
  • maxlength (integer) - Maximum number of data bytes that can be returned
Returns: string of bytes read from file
Data read from fp