public class CodeWriter extends StringWriter
| Constructor and Description |
|---|
CodeWriter(String dir,
String file)
Constructor to use for .java files.
|
CodeWriter(String dir,
String file,
boolean disableFormatter) |
CodeWriter(String dir,
String file,
String fileNameSuffix,
boolean disableFormatter)
Constructor to use for custom file suffixes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
This method is expected to be called only once during the code generation process after the
template processing is done.
|
public CodeWriter(String dir, String file)
dir - output directory where the file is to be created.file - name of the file without .java suffix.public CodeWriter(String dir, String file, String fileNameSuffix, boolean disableFormatter)
dir - output directory where the file is to be created.file - name of the file excluding suffix.fileNameSuffix - suffix to be appended at the end of file name.public void flush()
flush in interface Flushableflush in class StringWriterCopyright © 2023. All rights reserved.