code: static Map<Path, InputFormat> getInputFormatMap(JobConf conf) {
      Map<Path, InputFormat> m = new HashMap<Path, InputFormat>();
      String[] pathMappings = conf.get("mapred.input.dir.formats").split(",");
      for (String pathMapping : pathMappings) {
        String[] split = pathMapping.split(";");
        InputFormat inputFormat;
        try {
         inputFormat = (InputFormat) ReflectionUtils.newInstance(conf
             .getClassByName(split[1]), conf);
        } catch (ClassNotFoundException e) {
         throw new RuntimeException(e);
        }
        m.put(new Path(split[0]), inputFormat);
      }
      return m;
    }
docs: Retrieves a map of {@link Path}s to the {@link InputFormat} class
  that should be used for them.
  
  @param conf The confuration of the job
  @see #addInputPath(JobConf, Path, Class)
  @return A map of paths to inputformats for the job