Using a new framework to process files using encoder and decorer interfaces