### Question:
JavaDocReader { public synchronized static JavaDoc read(File sourceDir, List<String> compilePaths) { return read(Arrays.asList(sourceDir), compilePaths); }  synchronized static JavaDoc read(File sourceDir, List<String> compilePaths); synchronized static JavaDoc read(List<File> sourceDirs, List<String> compilePaths); synchronized static ClassDoc[] readWithClassDocs(List<File> sourceDirs, List<String> compilePaths);  }### Answer:
@Test public void test() throws IOException { JavaDoc javaDoc = read(); JSONArray array = new JSONArray(1024); for (ClassDoc value : javaDoc.getClassDocs().values()) { array.add(JSON.toJSON(value)); } for (ClassDoc value : javaDoc.getIncludeClassDocs().values()) { array.add(JSON.toJSON(value)); } System.out.println("=========================="); ClassDoc c2 = javaDoc.getClassDocs().get("org.genx.javadoc.test.JavaDocTest"); System.out.println(JSON.toJSONString(c2)); ClassDoc c3 = javaDoc.getClassDocs().get("org.genx.javadoc.entity.UserDetail"); System.out.println(JSON.toJSONString(c3)); }