code: public static void xml2Java(File file, String srcPath, String packageName, String className, boolean isPublicField) {
          InputStream is = null;
  
          try {
              is = new FileInputStream(file);
  
              xml2Java(is, srcPath, packageName, className, isPublicField);
          } catch (FileNotFoundException e) {
              throw new UncheckedIOException(e);
          } finally {
              IOUtil.close(is);
          }
      }
docs: Generate java code by the specified xml.
  
  @param file
  @param srcPath
  @param packageName
  @param className
  @param isPublicField