'Consumes the content of C{self._remainingData}.
@raise IncompleteNetstring: if C{self._remainingData} does not
contain enough data to complete the current netstring.
@raise NetstringParseError: if the received data do not
form a valid netstring.'

def _consumeData(self):

    if (self._state == self._PARSING_LENGTH):
        self._consumeLength()
        self._prepareForPayloadConsumption()
    if (self._state == self._PARSING_PAYLOAD):
        self._consumePayload()
