(String content,String filepath)
| 26 | } |
| 27 | |
| 28 | @Override |
| 29 | public void handle(String content,String filepath) { |
| 30 | log.info("dot handle"); |
| 31 | CompilationUnit cu = parse(content); |
| 32 | DotPrinter printer = new DotPrinter(true); |
| 33 | log.info(printer.output(cu)); |
| 34 | FileWriter fileWriter = new FileWriter(filepath); |
| 35 | fileWriter.write(printer.output(cu)); |
| 36 | log.info("write file success"); |
| 37 | log.info("Dot file path: "+ filepath); |
| 38 | log.info("dot handle end"); |
| 39 | } |
| 40 | |
| 41 | |
| 42 | } |