Package pinder :: Module streaming :: Class StreamingParser

Class StreamingParser

twisted.internet.protocol.BaseProtocol --+        
                                         |        
        twisted.internet.protocol.Protocol --+    
                                             |    
   twisted.protocols.basic._PauseableMixin --+    
                                             |    
          twisted.protocols.basic.LineReceiver --+
                                                 |
                                                StreamingParser

Instance Methods
 
__init__(self, user_callback, user_errback)
 
lineReceived(self, line)
Override this for when each line is received.
 
connectionLost(self, reason)
Called when the connection is shut down.

Inherited from twisted.protocols.basic.LineReceiver: clearLineBuffer, dataReceived, lineLengthExceeded, rawDataReceived, sendLine, setLineMode, setRawMode

Inherited from twisted.internet.protocol.BaseProtocol: __providedBy__, connectionMade, makeConnection

Inherited from twisted.protocols.basic._PauseableMixin: pauseProducing, resumeProducing, stopProducing

Class Variables
  delimiter = '\r'
The line-ending delimiter to use.

Inherited from twisted.protocols.basic.LineReceiver: MAX_LENGTH, line_mode

Inherited from twisted.internet.protocol.Protocol: __implemented__, __provides__

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Inherited from twisted.protocols.basic._PauseableMixin: paused

Method Details

lineReceived(self, line)

 

Override this for when each line is received.

Overrides: twisted.protocols.basic.LineReceiver.lineReceived
(inherited documentation)

connectionLost(self, reason)

 

Called when the connection is shut down.

Clear any circular references here, and any external references to this Protocol. The connection has been closed.

Overrides: twisted.internet.protocol.Protocol.connectionLost
(inherited documentation)