CodeWriter that reports progress to XJCListener.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final XJCListener | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | openBinary(JPackage pkg, String fileName)
Overrides com. Called by CodeModel to store the specified file. |
| public Writer | openSource(JPackage pkg, String fileName)
Overrides com. Called by CodeModel to store the specified file. |
| private void | report(final JPackage
The package of file being written. Value of pkg, final String null means that file has no package.The file name being written. Value can't be fileName)null.Report progress to |
| current | back to summary |
|---|---|
| private int current | |
| progress | back to summary |
|---|---|
| private final XJCListener progress | |
| totalFileCount | back to summary |
|---|---|
| private final int totalFileCount | |
| ProgressCodeWriter | back to summary |
|---|---|
| public ProgressCodeWriter(CodeWriter output, XJCListener progress, int totalFileCount) | |
| openBinary | back to summary |
|---|---|
| public OutputStream openBinary(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.
| |
| 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.
| |
| report | back to summary |
|---|---|
| private void report(final JPackage pkg, final String fileName) Report progress to | |