checkOutputSpecs method for TaskOutputFormat