Place the sugar, coffee and liqueur in a small sauce pan and heat until the syrup becomes thick. Whip the egg yolks and add to the syrup slowly.
Cream the butter until light an fluffy and then fold into the egg-coffee mixture. Mixture is ready for frosting and filling the cake.
Note: to make an Irish cream filling, substitute the coffee liqueur with Irish cream.