| Modifier and Type | Field and Description |
|---|---|
| private final boolean | readOnly
specify whether or not to mark the generated files read-only |
| private final Set | readonlyFiles
Files that shall be marked as read only. |
| private final File | target
The target directory to put source code. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract com. Called by CodeModel at the end of the process. |
| protected File | |
| public OutputStream | openBinary(JPackage pkg, String fileName)
Implements abstract com. Called by CodeModel to store the specified file. |
| private static String |
| readOnly | back to summary |
|---|---|
| private final boolean readOnly specify whether or not to mark the generated files read-only | |
| readonlyFiles | back to summary |
|---|---|
| private final Set<File> readonlyFiles Files that shall be marked as read only. | |
| target | back to summary |
|---|---|
| private final File target The target directory to put source code. | |
| FileCodeWriter | back to summary |
|---|---|
| public FileCodeWriter(File target) throws IOException | |
| FileCodeWriter | back to summary |
|---|---|
| public FileCodeWriter(File target, String encoding) throws IOException | |
| FileCodeWriter | back to summary |
|---|---|
| public FileCodeWriter(File target, boolean readOnly) throws IOException | |
| FileCodeWriter | back to summary |
|---|---|
| public FileCodeWriter(File target, boolean readOnly, String encoding) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract com. Doc from com. Called by CodeModel at the end of the process.
| |
| getFile | back to summary |
|---|---|
| protected File getFile(JPackage pkg, String fileName) throws IOException | |
| openBinary | back to summary |
|---|---|
| public OutputStream openBinary(JPackage pkg, String fileName) throws IOException Implements abstract 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.
| |
| toDirName | back to summary |
|---|---|
| private static String toDirName(JPackage pkg) Converts a package name to the directory name. | |