'Generates the file data for a chunk encoded file.'

def GenerateFileData(self):

    while 1:
        line = self.rfile.readline()
        chunk_size = int(line.split(';')[0], 16)
        if (chunk_size == 0):
            break
        for chunk in self._GenerateChunk(chunk_size):
            (yield chunk)
        lf = self.rfile.read(2)
        if (lf != '\r\n'):
            raise IOError('Unable    to    parse    chunk.')
    for header in self.rfile.readline():
        if (not header):
            break
