'Parse some amp data stored in a file.
@param fileObj: a file-like object.
@return: a list of AmpBoxes encoded in the given file.'

def parse(cls, fileObj):

    parserHelper = cls()
    bbp = BinaryBoxProtocol(boxReceiver=parserHelper)
    bbp.makeConnection(parserHelper)
    bbp.dataReceived(fileObj.read())
    return parserHelper.boxes
