1 package com4j.tlbimp; 2 3 import java.io.File ; 4 import java.io.FilterWriter ; 5 import java.io.IOException ; 6 import java.io.OutputStreamWriter ; 7 8 13 public class DumpCodeWriter implements CodeWriter { 14 public IndentingWriter create(File file) { 15 IndentingWriter w = new IndentingWriter(new FilterWriter (new OutputStreamWriter (System.out)) { 16 public void close() throws IOException { 17 flush(); 18 } 20 }, true); 21 w.printf("------ %1s ---------\n",file.getPath()); 22 return w; 23 } 24 } 25 | Popular Tags |