| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private final Path | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public | LicenseCodeWriter(CodeWriter
This CodeWriter will be used to actually create a storage
for files. LicenseCodeWriter simply decorates this underlying
CodeWriter by adding prolog comments. core, File license File license, String encoding encoding)
|
| Modifier and Type | Method and Description |
|---|---|
| public Writer | openSource(JPackage pkg, String fileName)
Overrides com. Called by CodeModel to store the specified file. |
| COPYRIGHT_LINE_TEMPLATE | back to summary |
|---|---|
| private static final String COPYRIGHT_LINE_TEMPLATE | |
| CURRENT_YEAR | back to summary |
|---|---|
| private static final String CURRENT_YEAR | |
| license | back to summary |
|---|---|
| private final Path license | |
| PATTERN | back to summary |
|---|---|
| private static final Pattern PATTERN | |
| LicenseCodeWriter | back to summary |
|---|---|
public LicenseCodeWriter(CodeWriter core, File license, String encoding)
| |
| openSource | back to summary |
|---|---|
| public Writer openSource(JPackage pkg, String fileName) throws IOException Overrides com. Doc from com. Called by CodeModel to store the specified file. The callee must allocate a storage to store the specified file. The returned stream will be closed before the next file is stored. So the callee can assume that only one OutputStream is active at any given time.
| |