public FileWriterUtil() throws ToolException { target = null; osc = new OutputStreamCreator(); } public FileWriterUtil(String targetDir, OutputStreamCreator osc) throws ToolException {
public FileWriterUtil() throws ToolException { target = null; osc = new OutputStreamCreator(); } public FileWriterUtil(String targetDir, OutputStreamCreator osc) throws ToolException {
public TypesCodeWriter(File ftarget, List<String> excludePkgs, String e, OutputStreamCreator outputStreamCreator) throws IOException { target = ftarget; excludePkgList = excludePkgs; setEncoding(e); osc = outputStreamCreator == null ? new OutputStreamCreator() : outputStreamCreator; }
public TypesCodeWriter(File ftarget, List<String> excludePkgs, String e, OutputStreamCreator outputStreamCreator) throws IOException { target = ftarget; excludePkgList = excludePkgs; setEncoding(e); osc = outputStreamCreator == null ? new OutputStreamCreator() : outputStreamCreator; }
public FileWriterUtil(String targetDir, OutputStreamCreator osc) throws ToolException { target = new File(targetDir); this.osc = osc == null ? new OutputStreamCreator() : osc; if (!(target.exists()) || !(target.isDirectory())) { Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, target); throw new ToolException(msg); } }
public FileWriterUtil(String targetDir, OutputStreamCreator osc) throws ToolException { target = new File(targetDir); this.osc = osc == null ? new OutputStreamCreator() : osc; if (!(target.exists()) || !(target.isDirectory())) { Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, target); throw new ToolException(msg); } }
protected OutputStreamCreator getOutputStreamCreator() { OutputStreamCreator osc = context.get(OutputStreamCreator.class); if (osc == null) { osc = new OutputStreamCreator(); context.put(OutputStreamCreator.class, osc); } return osc; } }
protected OutputStreamCreator getOutputStreamCreator() { OutputStreamCreator osc = context.get(OutputStreamCreator.class); if (osc == null) { osc = new OutputStreamCreator(); context.put(OutputStreamCreator.class, osc); } return osc; } }
outputStreamCreator = context.get(OutputStreamCreator.class); } else { outputStreamCreator = new OutputStreamCreator(); context.put(OutputStreamCreator.class, outputStreamCreator);
outputStreamCreator = context.get(OutputStreamCreator.class); } else { outputStreamCreator = new OutputStreamCreator(); context.put(OutputStreamCreator.class, outputStreamCreator);