code: public void setOutputFormatClass(Class<? extends OutputFormat> cls
                                     ) throws IllegalStateException {
      ensureState(JobState.DEFINE);
      conf.setClass(OUTPUT_FORMAT_CLASS_ATTR, cls, OutputFormat.class);
    }
docs: Set the {@link OutputFormat} for the job.
  @param cls the <code>OutputFormat</code> to use
  @throws IllegalStateException if the job is submitted