public ProgressCodeWriter( CodeWriter output, XJCListener progress, int totalFileCount ) { super(output); this.progress = progress; this.totalFileCount = totalFileCount; if(progress==null) throw new IllegalArgumentException(); }
/** * Creates a configured CodeWriter that produces files into the specified directory. */ public CodeWriter createCodeWriter( CodeWriter core ) { if(noFileHeader) return core; return new PrologCodeWriter( core,getPrologComment() ); }
/** * Creates a configured CodeWriter that produces files into the specified directory. * * @param core * @return */ public CodeWriter createCodeWriter(CodeWriter core) { if (noFileHeader) return core; return new PrologCodeWriter(core, getPrologComment()); }
/** * Creates a configured CodeWriter that produces files into the specified directory. */ public CodeWriter createCodeWriter() throws IOException { return createCodeWriter(new FileCodeWriter( targetDir, readOnly, encoding )); }
public ProgressCodeWriter( CodeWriter output, PrintStream progress ) { super(output); this.progress = progress; if(progress==null) throw new IllegalArgumentException(); }
public FilterCodeWriter(CodeWriter core) { this.core = core; }
/** * @param core * This CodeWriter will be used to actually create a storage for files. * PrologCodeWriter simply decorates this underlying CodeWriter by * adding prolog comments. * @param prolog * Strings that will be added as comments. * This string may contain newlines to produce multi-line comments. * '//' will be inserted at the beginning of each line to make it * a valid Java comment, so the caller can just pass strings like * "abc\ndef" */ public PrologCodeWriter( CodeWriter core, String prolog ) { super(core); this.prolog = prolog; }
/** * Creates a configured CodeWriter that produces files into the specified directory. * * @return * @throws java.io.IOException */ public CodeWriter createCodeWriter() throws IOException { return createCodeWriter(new FileCodeWriter(targetDir, readOnly, encoding)); }