'@param onOutReceived: A L{Deferred} to be fired as soon as data is
received from stdout.'

def __init__(self, onOutReceived):

    self.clearBuffer()
    self.onOutReceived = onOutReceived
    self.onProcessEnd = None
    self._expectingCommand = None
    self._processEnded = False
