Package pinder :: Module streaming :: Class StreamingParser

Class StreamingParser

source code

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) source code
 
lineReceived(self, line)
Override this for when each line is received.
source code
 
connectionLost(self, reason)
Called when the connection is shut down.
source code

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

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

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__

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

Inherited from twisted.protocols.basic._PauseableMixin: paused

Method Details

lineReceived(self, line)

source code 

Override this for when each line is received.

Parameters:
  • line - The line which was received with the delimiter removed.
Overrides: twisted.protocols.basic.LineReceiver.lineReceived
(inherited documentation)

connectionLost(self, reason)

source code 

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)