code: public void generate(File cobolFile, String cobolFileEncoding, File targetFolder,
              String targetPackageName,
              final String xsltFileName) {
          try {
              Reader reader = cobolFileEncoding == null ? new InputStreamReader(
                      new FileInputStream(cobolFile)) : new InputStreamReader(
                      new FileInputStream(cobolFile), cobolFileEncoding);
              generate(reader, targetFolder, targetPackageName, xsltFileName);
          } catch (UnsupportedEncodingException e) {
              throw new Cob2JaxbGeneratorException(e);
          } catch (FileNotFoundException e) {
              throw new Cob2JaxbGeneratorException(e);
          }
      }
docs: Given a COBOL copybook in a file, produce a set of java classes (source
  code) used to convert mainframe data (matching the copybook) to JAXB
  instances.
  
  @param cobolFile the COBOL copybook file
  @param cobolFileEncoding the COBOL copybook file character encoding
  @param targetFolder the target folder
  @param targetPackageName the java package the generated classes should
  reside in
  @param xsltFileName an optional xslt to apply on the XML Schema